mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
Merge branch 'stat' into third
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
/**测试人员名单*/
|
||||
|
||||
const userCodes=[
|
||||
'00004409'
|
||||
'12345601',
|
||||
'12345603',
|
||||
'00004409',
|
||||
'boeutest',
|
||||
'10181457'
|
||||
]
|
||||
|
||||
const userCodesPro=[
|
||||
'00004409'
|
||||
'00004409',
|
||||
'boeutest',
|
||||
'10181457'
|
||||
]
|
||||
|
||||
/**是否是测试人员*/
|
||||
@@ -13,7 +19,7 @@ const isTest=function(code){
|
||||
var testUser=false;
|
||||
var mode=process.env.NODE_ENV;
|
||||
|
||||
if(mode=='testing'){
|
||||
if(mode=='testing' || mode=='development'){
|
||||
userCodes.some(item=>{
|
||||
if(item===code){
|
||||
testUser=true;
|
||||
@@ -32,7 +38,7 @@ const isTest=function(code){
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
return testUser;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user