From c29cd0f5ec78c23d2ea8443eb9954bef1632cafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Mon, 7 Aug 2023 16:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E8=8E=B7=E5=8F=96=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E5=A4=B1=E8=B4=A5=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/Fe/src/permission.js | 2 +- Code/Fe/src/store/modules/user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Fe/src/permission.js b/Code/Fe/src/permission.js index 472309d..4834b3e 100644 --- a/Code/Fe/src/permission.js +++ b/Code/Fe/src/permission.js @@ -88,7 +88,7 @@ router.beforeEach(async (to, from, next) => { // next(`/login?loginName=${to.query.loginName}&isAutoLogin=${to.query.isAutoLogin}`) // next(`/login`) localStorage.removeItem("isLoginName") - Message.error('获取用户信息失败,请重试!') + // Message.error('获取用户信息失败,请重试!') }) // }) // .catch((error) => { diff --git a/Code/Fe/src/store/modules/user.js b/Code/Fe/src/store/modules/user.js index b5af24b..199acfa 100644 --- a/Code/Fe/src/store/modules/user.js +++ b/Code/Fe/src/store/modules/user.js @@ -136,7 +136,7 @@ const actions = { } }) .catch(err => { - reject(error) + reject(err) console.log('获取用户信息失败,请重试') }) })