mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 添加路由跳转浏览器新标签
This commit is contained in:
@ -43,7 +43,7 @@ import { OtherLogin } from './components';
|
||||
|
||||
const notification = useNotification();
|
||||
const auth = useAuthStore();
|
||||
const { toHome, toCurrentLogin, toLoginRedirectUrl } = useRouterPush();
|
||||
const { routerPush, toHome, toCurrentLogin } = useRouterPush();
|
||||
const { loginRedirectUrl } = useRouteQuery();
|
||||
const { loading, startLoading, endLoading } = useLoading();
|
||||
|
||||
@ -77,7 +77,7 @@ function handleSubmit(e: MouseEvent) {
|
||||
endLoading();
|
||||
setToken('temp-token');
|
||||
if (loginRedirectUrl.value) {
|
||||
toLoginRedirectUrl(loginRedirectUrl.value);
|
||||
routerPush(loginRedirectUrl.value);
|
||||
} else {
|
||||
toHome();
|
||||
}
|
||||
|
Reference in New Issue
Block a user