mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
提交白名单的修改
This commit is contained in:
@@ -8,12 +8,6 @@ const userCodes=[
|
||||
'10181457'
|
||||
]
|
||||
|
||||
const userCodesPro=[
|
||||
'00004409',
|
||||
'boeutest',
|
||||
'10181457'
|
||||
]
|
||||
|
||||
const init=function(){
|
||||
let data=sessionStorage.getItem('whiteuser-session');
|
||||
if(!data){
|
||||
@@ -39,6 +33,11 @@ const isTest= function(code){
|
||||
flag=codes.some(item=>{
|
||||
return (item==code);
|
||||
})
|
||||
}else{
|
||||
//如果没有,就使用程序中写死的
|
||||
flag=userCodes.some(item=>{
|
||||
return (item==code);
|
||||
})
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user