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