mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 01:16:43 +08:00
【银保app】修改我的页面名字脱敏显示规则判断
This commit is contained in:
@@ -145,11 +145,14 @@ export default {
|
||||
},
|
||||
filters: {
|
||||
encryCheckModelName(code) {
|
||||
if(code.length > 2){
|
||||
return code.replace(/(?<=[\u4e00-\u9fa5]).*(?=[\u4e00-\u9fa5])/, "*")
|
||||
}else{
|
||||
return code.replace(/.*(?=[\u4e00-\u9fa5])/, "*")
|
||||
}
|
||||
// if(code.length > 2){
|
||||
// return code.replace(/(?<=[\u4e00-\u9fa5]).*(?=[\u4e00-\u9fa5])/, "*")
|
||||
// }else{
|
||||
if(code){
|
||||
return code.replace(/.*(?=[\u4e00-\u9fa5])/, "*")
|
||||
}
|
||||
|
||||
// }
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user