fix: 执行lint

This commit is contained in:
chenjinsong
2022-12-08 16:09:46 +08:00
parent 136d98649d
commit 4bba03d41d
26 changed files with 362 additions and 371 deletions

View File

@@ -877,10 +877,10 @@ export async function getDnsMapData (type) {
}
return codeValueMap
}
export function handleSpecialValue(value){
export function handleSpecialValue (value) {
value = value.replaceAll("'", "\\\\'")
.replaceAll('"','\\"')
.replaceAll('&','%26')
.replaceAll('"', '\\"')
.replaceAll('&', '%26')
return value
}
export function combineTabList (tableType, list, commonTabList) {
@@ -946,9 +946,9 @@ export async function readDrilldownTableConfigByUser () {
export async function getConfigVersion (id) {
let defaultCongfigInDb = await db[dbDrilldownTableConfig].get({ id: id })
let version
if(defaultCongfigInDb) {
if (defaultCongfigInDb) {
version = defaultCongfigInDb ? defaultCongfigInDb.version : ''
}else {
} else {
defaultCongfigInDb = await db[dbDrilldownTableConfig].get({ id: 'default' })
}
return version