fix:修复修改菜单后刷新,无法正确高亮显示菜单的问题

This commit is contained in:
wangwenrui
2020-08-06 16:52:44 +08:00
parent aeec7130df
commit 0900012b9f
9 changed files with 26 additions and 8 deletions

View File

@@ -20,6 +20,12 @@ Created by iconfont
/>
<missing-glyph />
<glyph glyph-name="stack" unicode="&#59237;" d="M1024 492l-512 256-512-256 512-256 512 256zM512 663.04l342.048-171.04-342.048-171.04-342.048 171.04 342.048 171.04zM921.44 351.264l102.56-51.264-512-256-512 256 102.56 51.264 409.44-204.736zM921.44 159.264l102.56-51.264-512-256-512 256 102.56 51.264 409.44-204.736z" horiz-adv-x="1024" />
<glyph glyph-name="area" unicode="&#58938;" d="M204.8 99.328h1075.2l-170.666667 557.738667-256-199.338667-384.341333 358.4L194.56 486.4H204.8zM1365.333333 8.533333H136.533333V896H0v-1024h1365.333333v136.533333z" horiz-adv-x="1365" />
<glyph glyph-name="jinggao" unicode="&#59050;" d="M1011.982 53.482 606.673 755.435c-49.575 85.822-130.595 85.822-180.157 0L21.205 53.482c-49.562-85.91-9.015-155.99 90.04-155.99l810.693 0C1020.997-102.507 1061.502-32.423 1011.982 53.482zM460.924 556.263c14.565 15.747 33.082 23.622 55.665 23.622 22.595 0 41.095-7.792 55.675-23.307 14.485-15.55 21.725-34.997 21.725-58.382 0-20.12-30.235-168.07-40.32-275.704l-72.825 0c-8.845 107.635-41.652 255.584-41.652 275.704C439.194 521.226 446.446 540.593 460.924 556.263zM571.244 44.462c-15.32-14.92-33.55-22.355-54.65-22.355-21.095 0-39.33 7.435-54.647 22.355-15.275 14.885-22.867 32.915-22.867 54.09 0 21.065 7.592 39.29 22.867 54.565 15.317 15.28 33.552 22.92 54.647 22.92 21.1 0 39.33-7.64 54.65-22.92 15.265-15.275 22.875-33.5 22.875-54.565C594.119 77.377 586.509 59.347 571.244 44.462z" horiz-adv-x="1034" />

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 86 KiB

File diff suppressed because one or more lines are too long

View File

@@ -80,6 +80,7 @@ const cn = {
zoom:'区域缩放',
back:'区域缩放还原',
stack: "查看堆叠图",
stackBack:'返回原始图'
}
},
webshell: {

View File

@@ -83,7 +83,8 @@ const en = {
toolBox:{
zoom:'Area scaling',
back:'Area scaling restore',
stack:'Show stack chart'
stack:'Show stack chart',
stackBack:'Back to original chart'
}
},
pageSize: '/page',

View File

@@ -223,6 +223,7 @@
immediate: true,
handler(n) {
this.active = n;
console.log(n)
}
},
currentProjectChange: {
@@ -256,6 +257,7 @@
} else {
this.parentMenu = "dashboards";
}
console.log(cacheMenu)
if (cacheMenu) {
this.active = cacheMenu;
} else {
@@ -463,7 +465,7 @@
jumpTo(route) {
bus.$emit("menu-change", route);
localStorage.setItem('nz-parent-menu', this.parentMenu);
localStorage.setItem('nz-menu-change', route);
localStorage.setItem('nz-menu', route);
this.$router.push({
path: route,
query: {