From 602ec947e4c2f09a5e966fb8f194b20f48fab07e Mon Sep 17 00:00:00 2001 From: "lj7788@126.com" Date: Mon, 16 Jun 2025 18:08:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=A7=E5=B1=8F=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-bigscreen/src/components/header.vue | 5 ++++- yanzhu-bigscreen/src/router/index.js | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/yanzhu-bigscreen/src/components/header.vue b/yanzhu-bigscreen/src/components/header.vue index 442b63d1..8062f2ee 100644 --- a/yanzhu-bigscreen/src/components/header.vue +++ b/yanzhu-bigscreen/src/components/header.vue @@ -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; } } diff --git a/yanzhu-bigscreen/src/router/index.js b/yanzhu-bigscreen/src/router/index.js index 70892105..cb5a0210 100644 --- a/yanzhu-bigscreen/src/router/index.js +++ b/yanzhu-bigscreen/src/router/index.js @@ -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 = [