We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97cbec4 commit 2c18eccCopy full SHA for 2c18ecc
web/src/dss/module/header/index.vue
@@ -589,9 +589,14 @@ export default {
589
},
590
goSpaceHome() {
591
let workspaceId = this.$route.query.workspaceId;
592
- if (!workspaceId) return this.goHome();
593
- this.$router.push({ path: "/workspaceHome", query: { workspaceId } });
594
- this.currentProject = {};
+ if (!workspaceId) {
+ // workspaceId为空,说明一定是admin,进入了admin的页面,因为workspaceId是一直伴随的
+ // 就无须在调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
+ }
600
601
goConsole() {
602
// const url =
0 commit comments