fix: 客户端打开不自动登录的问题

This commit is contained in:
kuaifan 2022-03-24 11:55:43 +08:00
parent ceee696443
commit 665184bfa2

View File

@ -218,7 +218,11 @@ export default {
getNeedStartHome() { getNeedStartHome() {
if (this.$Electron) { if (this.$Electron) {
this.needStartHome = false; this.needStartHome = false;
if (this.userId > 0) {
this.goForward({name: 'manage-dashboard'}, true);
} else {
this.goForward({name: 'login'}, true); this.goForward({name: 'login'}, true);
}
return; return;
} }
this.$store.dispatch("call", { this.$store.dispatch("call", {