fix: 还原登录后跳转方式

This commit is contained in:
XieYongHong 2023-06-20 15:45:34 +08:00 committed by GitHub
parent 06d8c03dd0
commit 3ff87e2ff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -266,8 +266,8 @@ const onFinish = async () => {
if (userResp.result?.username === 'admin') {
const resp: any = await getInitSet();
if (resp.status === 200 && !resp.result.length) {
// window.location.href = '/#/init-home';
router.push('/init-home')
window.location.href = '/#/init-home';
// router.push('/init-home')
return;
}
}
@ -276,8 +276,8 @@ const onFinish = async () => {
...res.result
});
}
// window.location.href = '/';
router.push('/')
window.location.href = '/';
// router.push('/')
}
} catch (error) {
form.verifyCode = '';