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() {
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", {