From 54c0eecb67c7b95ceab30e51219edc8e791bab6c Mon Sep 17 00:00:00 2001 From: From-wh Date: Sat, 6 May 2023 15:26:33 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E9=A6=96=E9=A1=B5path=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/src/layout/navBars/tagsView/tagsView.vue | 10 +--------- template/admin/src/router/modules/index.js | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/template/admin/src/layout/navBars/tagsView/tagsView.vue b/template/admin/src/layout/navBars/tagsView/tagsView.vue index 62ce10fdf..ac35f23e7 100644 --- a/template/admin/src/layout/navBars/tagsView/tagsView.vue +++ b/template/admin/src/layout/navBars/tagsView/tagsView.vue @@ -124,15 +124,7 @@ export default { onTagsClick(v, k) { this.tagsRoutePath = v.path; this.tagsRefsIndex = k; - try { - if (v.name == 'home_index') { - this.$router.replace(`${setting.routePre}/home_page`); - } else { - this.$router.push(v); - } - } catch (error) { - console.log(error); - } + this.$router.push(v); }, // 获取 tagsView 的下标:用于处理 tagsView 点击时的横向滚动 getTagsRefsIndex(path) { diff --git a/template/admin/src/router/modules/index.js b/template/admin/src/router/modules/index.js index 2961265a3..23e8f2009 100644 --- a/template/admin/src/router/modules/index.js +++ b/template/admin/src/router/modules/index.js @@ -29,7 +29,7 @@ export default { component: LayoutMain, children: [ { - path: routePre + '/home_page', + path: routePre + '/index', name: `${pre}index`, header: 'home', meta: {