From 5829974a26420f49b7f230a1c75d9d50a087e95e Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 21 Sep 2023 13:47:01 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9C=8B=E6=9D=BF,=E9=A6=96=E9=A1=B5=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E6=A8=A1=E5=9D=97"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 9957f59be3bc0c5181225e61ee45f81ad488f0f9. --- src/router/index.js | 7 +++++-- src/views/main-navbar.vue | 6 +++--- src/views/main-shuju/main-navbar.vue | 2 +- src/views/pages/login.vue | 5 +---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index ef419a4..05b4bb6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -34,8 +34,11 @@ export const pageRoutes = [ }, }, { - path: "/index", + path: "/", name: "index", + redirect: { + path: "/main/lingshan-home-index", + }, component: () => import("@/views/pages/index"), }, { @@ -53,7 +56,7 @@ export const moduleRoutes = { component: () => import("@/views/main"), name: "main", redirect: { - name: "home", + path: "/main/shequ-index", }, meta: { title: "主入口布局", diff --git a/src/views/main-navbar.vue b/src/views/main-navbar.vue index 75a293f..1b06c1a 100644 --- a/src/views/main-navbar.vue +++ b/src/views/main-navbar.vue @@ -43,9 +43,9 @@ mode="horizontal" class="aui-navbar__menu mr-auto z-div" > - + {}) + this.$router.replace({ path: "/main/shequ-index" }); } }, // 获取公钥 @@ -270,7 +268,6 @@ export default { localStorage.setItem("userType", "work"); localStorage.setItem("token", res.data.token); - console.log(res.data.token,'ccccccc'); this.skipAfterLogin(); }) .catch(() => {