From 58da4126c9d09e90d41ec29bb36f8540511c9e11 Mon Sep 17 00:00:00 2001 From: xjs Date: Mon, 26 May 2025 09:31:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 -- src/views/components/PaymentTotal.vue | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index b43fac0..b206244 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -29,13 +29,11 @@ router.beforeEach((to, _from, next) => { const userStore = useUserStore() let userRole = ""; let hasLogin = userStore.getAccessToken; - console.log(hasLogin); // 如果目标路由没有角色限制 if (!to.meta.role) { next(); } - console.log(to.meta.role); // 判断当前用户角色是否在目标路由的允许角色列表中 if ((to.meta.role as string[]).includes(userRole)) { diff --git a/src/views/components/PaymentTotal.vue b/src/views/components/PaymentTotal.vue index fa875b9..5418247 100644 --- a/src/views/components/PaymentTotal.vue +++ b/src/views/components/PaymentTotal.vue @@ -23,7 +23,7 @@ -
+