From 665184bfa239a3bf2ab4bfb7267a58ffca2c9258 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 24 Mar 2022 11:55:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=A2=E6=88=B7=E7=AB=AF=E6=89=93?= =?UTF-8?q?=E5=BC=80=E4=B8=8D=E8=87=AA=E5=8A=A8=E7=99=BB=E5=BD=95=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/pages/index.vue b/resources/assets/js/pages/index.vue index e6d2cff0e..d6e4335c1 100644 --- a/resources/assets/js/pages/index.vue +++ b/resources/assets/js/pages/index.vue @@ -218,7 +218,11 @@ export default { getNeedStartHome() { if (this.$Electron) { this.needStartHome = false; - this.goForward({name: 'login'}, true); + if (this.userId > 0) { + this.goForward({name: 'manage-dashboard'}, true); + } else { + this.goForward({name: 'login'}, true); + } return; } this.$store.dispatch("call", {