Эх сурвалжийг харах

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

sunxiao 1 сар өмнө
parent
commit
30d0c7fb45

+ 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 => {