对数据中的双引号和&进行特殊处理;panelName显示异常;

This commit is contained in:
hyx
2022-11-17 15:21:17 +08:00
parent 7c4b16d443
commit 2b34f8bc26
3 changed files with 14 additions and 7 deletions

View File

@@ -877,6 +877,12 @@ export async function getDnsMapData (type) {
}
return codeValueMap
}
export function handleSpecialValue(value){
value = value.replaceAll("'", "\\\\'")
.replaceAll('"','\\"')
.replaceAll('&','%26')
return value
}
export function combineTabList (tableType, list, commonTabList) {
const curTableInCode = networkTable[tableType] ? networkTable[tableType] : networkTable.networkOverview
const listInCode = curTableInCode ? curTableInCode.tabList : []