Skip to content

Commit

Permalink
bugfix: 导航菜单兼容低版本chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiaone committed Feb 22, 2022
1 parent a2ca694 commit d4a8985
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions web/src/components/nav/head-nav.vue
Expand Up @@ -511,12 +511,10 @@ export default {
});
},
replaceMenuId(list) {
console.log(2333);
list.forEach((item) => {
if (item.id === 'search') {
item.id = 'retrieve';
}
// item.id = item.id.replaceAll('_', '-');
item.id = item.id.replace(/_/g, '-');
if (item.children) {
this.replaceMenuId(item.children);
Expand Down Expand Up @@ -757,7 +755,6 @@ export default {
resMenu.children.forEach((item) => {
item.id = this.routeMap[item.id] || item.id;
if (resMenu.id === 'dashboard') {
// item.id = item.id.replaceAll('-', '_');
item.id = item.id.replace(/_/g, '-');
}
const menu = oldMenu.children.find(menuItem => menuItem.id === item.id);
Expand Down

0 comments on commit d4a8985

Please sign in to comment.