mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 12:02:51 +00:00
perf: 首页判断是否登录优先于判断是否需要启动首页
This commit is contained in:
parent
7428022b2f
commit
011fc8cc9e
@ -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(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user