From 03f3c69142d9e2c8bd6bc5427d166ba41dc03f23 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 25 May 2021 10:26:13 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E4=BF=AE=E6=94=B9=E7=9A=84=E5=AF=86=E7=A0=81=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=98=8E=E6=96=87=E7=9A=84=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?=EF=BC=8C=20asset=20cahrt=20=E5=AF=BC=E5=85=A5=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/popBox/topToolMoreOptions.vue | 6 ++++-- .../components/common/rightBox/asset/assetBatchEditBox.vue | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue b/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue index e5e8643f9..9b41efe9d 100644 --- a/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue +++ b/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue @@ -160,8 +160,9 @@ export default { } this.$delete(url + '?seq=' + this.importResult.seq).then(response => { if (response.code == 200) { + const linkId = this.link ? this.link.id : '' this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') }) - this.$emit('afterImport') + this.$emit('afterImport', linkId) } else { this.$message.error(response.msg) } @@ -183,7 +184,8 @@ export default { this.$post(this.importUrl, form, { 'Content-Type': 'multipart/form-data' }).then(response => { if (response.code == 200 && response.msg == 'success') { this.importResult = response.data - this.$emit('afterImport') + const linkId = this.link ? this.link.id : '' + this.$emit('afterImport', linkId) this.importBox.type = 3 this.importBox.width = '600px' } else { diff --git a/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue b/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue index 4bf680cbe..3792abeba 100644 --- a/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue +++ b/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue @@ -37,11 +37,11 @@ - +