From 767e2d8048bf3e89e4e8c8d59d7a938162b98ed8 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 11 Mar 2024 13:34:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20=E9=80=80=E5=87=BA=E5=90=8E?= =?UTF-8?q?=E5=8F=AF=E9=87=8D=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 2 +- src/views/login/components/passwordForm.vue | 90 +++------------------ src/views/login/components/phoneForm.vue | 20 +++-- src/views/login/index.vue | 4 +- 4 files changed, 31 insertions(+), 85 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 6eae7adf..65e8bee7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -36,7 +36,7 @@ router.beforeEach(async (to, from, next) => { //动态标题 document.title = to.meta.title ? `${to.meta.title} - ${config.APP_NAME}` : `${config.APP_NAME}` - let token = tool.cookie.get("TOKEN"); + let token = tool.data.get("TOKEN"); //去往登录页 if (to.path === "/login") { //删除路由(替换当前layout路由) diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue index 31c2a4fd..a91258f3 100644 --- a/src/views/login/components/passwordForm.vue +++ b/src/views/login/components/passwordForm.vue @@ -24,7 +24,7 @@ {{ $t("login.signIn") - }} + }}