diff --git a/src/views/user/Login/index.vue b/src/views/user/Login/index.vue index ee99091e..e4f80051 100644 --- a/src/views/user/Login/index.vue +++ b/src/views/user/Login/index.vue @@ -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 = '';