From 3ff87e2ff451a1284a9e67a663a2e75ef368259d Mon Sep 17 00:00:00 2001 From: XieYongHong <18010623010@163.com> Date: Tue, 20 Jun 2023 15:45:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=98=E5=8E=9F=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=90=8E=E8=B7=B3=E8=BD=AC=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/Login/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = '';