diff --git a/src/views/detections/detectionPolicies/PolicyForm.vue b/src/views/detections/detectionPolicies/PolicyForm.vue index 0730134d..80f74bd7 100644 --- a/src/views/detections/detectionPolicies/PolicyForm.vue +++ b/src/views/detections/detectionPolicies/PolicyForm.vue @@ -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) { diff --git a/src/views/entityExplorer/EntityExplorer.vue b/src/views/entityExplorer/EntityExplorer.vue index 1c714593..eccd4117 100644 --- a/src/views/entityExplorer/EntityExplorer.vue +++ b/src/views/entityExplorer/EntityExplorer.vue @@ -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) }