From 8ae40462856d6e50b8e3f480ec55316a7e633a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Sun, 19 Jun 2022 14:50:50 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E4=BF=AE=E6=94=B9=E5=8F=8B=E5=A5=BD?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/guard/permission-guard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/guard/permission-guard.js b/src/router/guard/permission-guard.js index 5a83f2e..76919ec 100644 --- a/src/router/guard/permission-guard.js +++ b/src/router/guard/permission-guard.js @@ -22,7 +22,7 @@ export function createPermissionGuard(router) { await userStore.getUserInfo().catch((error) => { removeToken() toLogin() - $message.error(`【${error.code}】 ${error.message}`) + $message.error(error.message || '获取用户信息失败!') return }) const accessRoutes = permissionStore.generateRoutes(userStore.role)