mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 20:12:48 +00:00
perf: 首页判断是否登录优先于判断是否需要启动首页
This commit is contained in:
parent
7428022b2f
commit
011fc8cc9e
@ -245,12 +245,14 @@ export default {
|
|||||||
url: "system/get/starthome",
|
url: "system/get/starthome",
|
||||||
})
|
})
|
||||||
.then(({data}) => {
|
.then(({data}) => {
|
||||||
this.needStartHome = !!data.need_start;
|
|
||||||
this.homeFooter = data.home_footer;
|
this.homeFooter = data.home_footer;
|
||||||
if (this.$store.state.userId > 0) {
|
if (this.$store.state.userId > 0) {
|
||||||
this.goForward({path: '/manage/dashboard'}, true);
|
this.goForward({path: '/manage/dashboard'}, true);
|
||||||
} else if (this.needStartHome === false) {
|
} else {
|
||||||
this.goForward({path: '/login'}, true);
|
this.needStartHome = !!data.need_start;
|
||||||
|
if (this.needStartHome === false) {
|
||||||
|
this.goForward({path: '/login'}, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user