From 5062193757167679e86b7534698bc46bb5e728fd Mon Sep 17 00:00:00 2001 From: hLinx <327159425@qq.com> Date: Fri, 4 Aug 2023 17:07:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=84=9A=E6=9C=AC=E7=9A=84=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=AF=B9=E6=AF=94=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=E5=A4=B1=E6=95=88=20#2309?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/script-manage/common/diff.vue | 276 +++++++++--------- 1 file changed, 136 insertions(+), 140 deletions(-) diff --git a/src/frontend/src/views/script-manage/common/diff.vue b/src/frontend/src/views/script-manage/common/diff.vue index a6706f74e3..ad9e8280b9 100644 --- a/src/frontend/src/views/script-manage/common/diff.vue +++ b/src/frontend/src/views/script-manage/common/diff.vue @@ -88,16 +88,19 @@ - - - +
+ + + +
{ window.removeEventListener('keydown', this.handleEsc); - try { - document.body.removeChild(this.$el); - } catch { - console.log('error'); - } + this.$el.parentNode.removeChild(this.$el); }); }, methods: { @@ -298,167 +297,164 @@ };