优化前端路由代码

This commit is contained in:
不做码农
2021-12-04 18:05:20 +08:00
parent c46d5015d2
commit 97692460fe
6 changed files with 22 additions and 50 deletions

View File

@@ -137,7 +137,7 @@ export default {
window.open(key, "_blank");
} else if (key.indexOf("/redirect") !== -1) {
// /redirect 路径内部打开
this.$router.push({ path: key.replace("/redirect", "") });
this.$router.push({ path: key.replace("/redirect", "") }).catch(err => {});
} else {
// 显示左侧联动菜单
this.activeRoutes(key);