From 8d4924a42156f151c765d39475bc7cb2b137cd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Tue, 31 Oct 2023 18:08:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201=E3=80=81=E4=BF=AE=E5=A4=8D=E5=AE=9E?= =?UTF-8?q?=E4=BD=93=E6=90=9C=E7=B4=A2=E5=81=B6=E7=8E=B0=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9B2=E3=80=81=E5=8E=BB=E9=99=A4detections--policy?= =?UTF-8?q?=E6=97=A0=E6=95=88=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/detections/detectionPolicies/PolicyForm.vue | 1 - src/views/entityExplorer/EntityExplorer.vue | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) 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) }