Skip to content

Commit 2c18ecc

Browse files
committed
修复logo点击报错RangeError: Maximum call stack size exceeded
1 parent 97cbec4 commit 2c18ecc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

web/src/dss/module/header/index.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,14 @@ export default {
589589
},
590590
goSpaceHome() {
591591
let workspaceId = this.$route.query.workspaceId;
592-
if (!workspaceId) return this.goHome();
593-
this.$router.push({ path: "/workspaceHome", query: { workspaceId } });
594-
this.currentProject = {};
592+
if (!workspaceId) {
593+
// workspaceId为空,说明一定是admin,进入了admin的页面,因为workspaceId是一直伴随的
594+
// 就无须在调goHome,防止在控制台页面因为isAdmin失效而导致goHome和goSpaceHome来回调用而报错RangeError: Maximum call stack size exceeded
595+
this.$router.push("/newhome");
596+
} else {
597+
this.$router.push({ path: "/workspaceHome", query: { workspaceId } });
598+
this.currentProject = {};
599+
}
595600
},
596601
goConsole() {
597602
// const url =

0 commit comments

Comments
 (0)