修改大屏菜单跳转

dev_xd
lj7788@126.com 2025-06-16 18:08:00 +08:00
parent 15edbca46e
commit 602ec947e4
2 changed files with 9 additions and 1 deletions

View File

@ -247,6 +247,9 @@ export default {
case 702:
this.$router.push("/bimRoaming");
break;
case 701:
this.$router.push("/bimManage");
break;
case 102:
this.$router.push("/labor");
break;
@ -399,7 +402,7 @@ export default {
transform: scale(1.5) !important;
margin-right: 60px !important;
width: 260px !important;
width: 220px !important;
right: 10px !important;
}
}

View File

@ -1,6 +1,11 @@
import Vue from "vue";
import VueRouter from "vue-router";
const originalPush = VueRouter.prototype.push
// 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
Vue.use(VueRouter);
const routes = [