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