添加测试环境跳转名单

This commit is contained in:
daihh
2022-12-11 21:05:55 +08:00
parent 0368239ce8
commit 63d2e38e5a
2 changed files with 40 additions and 5 deletions

23
src/utils/testUsers.js Normal file
View 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
}