From 1fae2c24f76f71add4895a9ca78150c63a07a1b9 Mon Sep 17 00:00:00 2001 From: leiqiaochu Date: Fri, 31 Mar 2023 18:05:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20bug=E7=AE=A1=E7=90=86=E5=91=98=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/init-home/index.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/views/init-home/index.vue b/src/views/init-home/index.vue index c54aa561..1543ea72 100644 --- a/src/views/init-home/index.vue +++ b/src/views/init-home/index.vue @@ -134,12 +134,8 @@ const submitData = async () => { * 判断是否已有配置 */ const judgeInitSet = async () => { - if (userInfo.$state.userInfos.username === 'admin') { - const resp: any = await getInit(); - if (resp.status === 200 && resp.result.length) { - window.location.href = '/'; - } - } else { + const resp: any = await getInit(); + if (resp.status === 200 && resp.result.length) { window.location.href = '/'; } };