|
@ -100,7 +100,7 @@ const iconLock = useIcon({ icon: 'ep:lock' }) |
|
|
const formLogin = ref() |
|
|
const formLogin = ref() |
|
|
const { validForm } = useFormValid(formLogin) |
|
|
const { validForm } = useFormValid(formLogin) |
|
|
const { setLoginState, getLoginState } = useLoginState() |
|
|
const { setLoginState, getLoginState } = useLoginState() |
|
|
const { currentRoute, push } = useRouter() |
|
|
const { currentRoute, push , replace} = useRouter() |
|
|
const permissionStore = usePermissionStore() |
|
|
const permissionStore = usePermissionStore() |
|
|
const redirect = ref<string>('') |
|
|
const redirect = ref<string>('') |
|
|
const loginLoading = ref(false) |
|
|
const loginLoading = ref(false) |
|
@ -215,7 +215,7 @@ const handleLogin = async (params) => { |
|
|
window.location.href = window.location.href.replace('/login?redirect=', '') |
|
|
window.location.href = window.location.href.replace('/login?redirect=', '') |
|
|
} else { |
|
|
} else { |
|
|
console.log(redirect.value) |
|
|
console.log(redirect.value) |
|
|
push({ path: redirect.value || permissionStore.addRouters[0].path }) |
|
|
replace({ path: redirect.value || permissionStore.addRouters[0].path }) |
|
|
} |
|
|
} |
|
|
// 存储 部门信息 |
|
|
// 存储 部门信息 |
|
|
const { wsCache } = useCache() |
|
|
const { wsCache } = useCache() |
|
|