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(() => {