From 011fc8cc9e7e81e345c7ad83ffee69aff5322834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A6=E8=8D=A3=E8=B6=85?= <302645122@qq.com> Date: Fri, 25 Feb 2022 15:57:03 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=A6=96=E9=A1=B5=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E7=99=BB=E5=BD=95=E4=BC=98=E5=85=88=E4=BA=8E?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E9=9C=80=E8=A6=81=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/pages/index.vue b/resources/assets/js/pages/index.vue index 0d7a5d297..d5f939344 100644 --- a/resources/assets/js/pages/index.vue +++ b/resources/assets/js/pages/index.vue @@ -245,12 +245,14 @@ export default { url: "system/get/starthome", }) .then(({data}) => { - this.needStartHome = !!data.need_start; this.homeFooter = data.home_footer; if (this.$store.state.userId > 0) { this.goForward({path: '/manage/dashboard'}, true); - } else if (this.needStartHome === false) { - this.goForward({path: '/login'}, true); + } else { + this.needStartHome = !!data.need_start; + if (this.needStartHome === false) { + this.goForward({path: '/login'}, true); + } } }) .catch(() => {