fix:去掉多余重复的方法

This commit is contained in:
hyx
2022-12-08 16:26:01 +08:00
parent 5520772a91
commit 1f941376ee
2 changed files with 6 additions and 34 deletions

View File

@@ -877,10 +877,12 @@ export async function getDnsMapData (type) {
}
return codeValueMap
}
export function handleSpecialValue (value) {
value = value.replaceAll("'", "\\\\'")
.replaceAll('"', '\\"')
.replaceAll('&', '%26')
export function handleSpecialValue(value){
if(value){
value = value.replaceAll("'", "\\\\'")
.replaceAll('"','\\"')
.replaceAll('&','%26')
}
return value
}
export function combineTabList (tableType, list, commonTabList) {