fix: 还原登录后跳转方式
This commit is contained in:
parent
06d8c03dd0
commit
3ff87e2ff4
|
@ -266,8 +266,8 @@ const onFinish = async () => {
|
||||||
if (userResp.result?.username === 'admin') {
|
if (userResp.result?.username === 'admin') {
|
||||||
const resp: any = await getInitSet();
|
const resp: any = await getInitSet();
|
||||||
if (resp.status === 200 && !resp.result.length) {
|
if (resp.status === 200 && !resp.result.length) {
|
||||||
// window.location.href = '/#/init-home';
|
window.location.href = '/#/init-home';
|
||||||
router.push('/init-home')
|
// router.push('/init-home')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -276,8 +276,8 @@ const onFinish = async () => {
|
||||||
...res.result
|
...res.result
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// window.location.href = '/';
|
window.location.href = '/';
|
||||||
router.push('/')
|
// router.push('/')
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
form.verifyCode = '';
|
form.verifyCode = '';
|
||||||
|
|
Loading…
Reference in New Issue