mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-14 12:43:42 +08:00
fix(projects): 修复登录的重定向地址
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import OtherLogin from './OtherLogin.vue';
|
||||
|
||||
export { OtherLogin };
|
||||
@@ -31,12 +31,12 @@ import { reactive, ref } from 'vue';
|
||||
import { NForm, NFormItem, NInput, NSpace, NCheckbox, NButton, useNotification } from 'naive-ui';
|
||||
import type { FormInst } from 'naive-ui';
|
||||
import { EnumLoginModule } from '@/enum';
|
||||
import { useRouterChange, useRouteParam } from '@/hooks';
|
||||
import { useRouterChange, useRouteQuery } from '@/hooks';
|
||||
import { setToken, toLoginRedirectUrl } from '@/utils';
|
||||
import { OtherLogin } from '../common';
|
||||
import { OtherLogin } from './components';
|
||||
|
||||
const { toLogin, toHome } = useRouterChange();
|
||||
const { loginRedirectUrl } = useRouteParam();
|
||||
const { loginRedirectUrl } = useRouteQuery();
|
||||
const notification = useNotification();
|
||||
|
||||
const formRef = ref<(HTMLElement & FormInst) | null>(null);
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
import OtherLogin from './OtherLogin/index.vue';
|
||||
|
||||
export { OtherLogin };
|
||||
Reference in New Issue
Block a user