mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 07:16:44 +08:00
添加测试环境跳转名单
This commit is contained in:
23
src/utils/testUsers.js
Normal file
23
src/utils/testUsers.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/**测试人员名单*/
|
||||
|
||||
const userCodes=[
|
||||
'00004409'
|
||||
]
|
||||
|
||||
/**是否是测试人员*/
|
||||
const isTest=function(code){
|
||||
var testUser=false;
|
||||
userCodes.some(item=>{
|
||||
if(item===code){
|
||||
testUser=true;
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
})
|
||||
return testUser;
|
||||
}
|
||||
|
||||
export default {
|
||||
isTest
|
||||
}
|
||||
Reference in New Issue
Block a user