mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
灰度白名单测试
This commit is contained in:
@@ -13,7 +13,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 +32,7 @@ const isTest=function(code){
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
return testUser;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user