From e181f04c642204e79749af93fa921875ff6c21ba Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期二, 20 五月 2025 10:46:35 +0800
Subject: [PATCH] refactor(qms): 重构趋势图展示逻辑

---
 src/directive/permission/index.ts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/directive/permission/index.ts b/src/directive/permission/index.ts
index afde332..eb2dccc 100644
--- a/src/directive/permission/index.ts
+++ b/src/directive/permission/index.ts
@@ -31,7 +31,7 @@
     const { roles } = useUserStore();
     if (value && value instanceof Array && value.length > 0) {
       const hasRole = roles.some((role: string) => {
-        return role === 'admin' || value.includes(role);
+        return role === 'superadmin' || role === 'admin' || value.includes(role);
       });
       if (!hasRole) {
         el.parentNode && el.parentNode.removeChild(el);

--
Gitblit v1.9.3