fix(projects): 修复登录的重定向地址

This commit is contained in:
Soybean
2021-09-16 13:58:11 +08:00
parent c1cdc3a9ed
commit f97f226656
24 changed files with 261 additions and 174 deletions

View File

@ -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);