fix: 1、修复实体搜索偶现参数解析错误的问题;2、去除detections--policy无效打印

This commit is contained in:
刘洪洪
2023-10-31 18:08:23 +08:00
parent 41d2f48766
commit 8d4924a421
2 changed files with 4 additions and 2 deletions

View File

@@ -418,7 +418,6 @@ export default {
this.myLoading = false
})
} else {
console.log('进来')
this.myLoading = true
axios.put(api.detection.create.create, formObj).then(response => {
if (response.status === 200) {

View File

@@ -741,7 +741,10 @@ export default {
q = decodeURI(q)
}
// %位置不为0即内容包含非英文时
const str1 = q.substring(q.indexOf('%'), q.indexOf('%') + 3)
let str1 = ''
if (q) {
str1 = q.substring(q.indexOf('%'), q.indexOf('%') + 3)
}
if (q && q.indexOf('%') > 0 && (str1 !== '%20' || str1 === '%25')) {
q = decodeURI(q)
}