mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
fix: 客户端打开不自动登录的问题
This commit is contained in:
parent
ceee696443
commit
665184bfa2
@ -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", {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user