From 41916d32608ed6fb9ef2a819fdc4a8025049c6fd Mon Sep 17 00:00:00 2001 From: bawwtracs Date: Fri, 12 Nov 2021 12:19:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=8F=9C=E5=8D=95=E5=81=B6=E5=B0=94404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/avue-router.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/router/avue-router.js b/src/router/avue-router.js index 1bf7687f..120c120a 100644 --- a/src/router/avue-router.js +++ b/src/router/avue-router.js @@ -18,7 +18,6 @@ RouterPlugin.install = function(router, store) { this.$router.$avueRouter = { // 全局配置 $website: this.$store.getters.website, - routerList: [], group: '', safe: this, // 设置标题 @@ -73,7 +72,6 @@ RouterPlugin.install = function(router, store) { if (aMenu.length === 0) return for (let i = 0; i < aMenu.length; i++) { const oMenu = aMenu[i] - if (this.routerList.includes(oMenu[propsDefault.path])) return const path = (() => { if (!oMenu[propsDefault.path]) { return @@ -140,10 +138,7 @@ RouterPlugin.install = function(router, store) { aRouter.push(oRouter) } if (first) { - if (!this.routerList.includes(aRouter[0][propsDefault.path])) { - this.safe.$router.addRoutes(aRouter) - this.routerList.push(aRouter[0][propsDefault.path]) - } + this.safe.$router.addRoutes(aRouter) } else { return aRouter } -- Gitee