瀏覽代碼

feat: 等保新增认证账号白名单

sunxiao 1 月之前
父節點
當前提交
30d0c7fb45
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/stores/modules/userStore.js

+ 2 - 1
src/stores/modules/userStore.js

@@ -6,7 +6,8 @@ export const useUserStore = defineStore('user', () => {
   const dialogStatus = ref(false);
   
   const isCheckUser = computed(() => {
-    return userInfo.value.userName === 'xinyi001'
+    const whiteList = ['xinyi001', 'lixiaowei01', 'chenchao1985', 'lijie1981', 'zhujinlong1988'];
+    return whiteList.includes(userInfo.value.userName);
   })
 
   const setUserInfo = params => {