From 79ef6d7ae271ef3125b9c417bf3dcc62af5ff5f0 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 4 Dec 2023 15:30:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=8D=E5=A4=8D?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=9B=BE=E7=89=87=E7=BB=84=E4=BB=B6=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=B8=AD=E7=BC=A9=E7=95=A5=E5=9B=BE=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/picture/Attr.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/custom-component/picture/Attr.vue b/core/core-frontend/src/custom-component/picture/Attr.vue index 5f79a958a1..ff1c824d1c 100644 --- a/core/core-frontend/src/custom-component/picture/Attr.vue +++ b/core/core-frontend/src/custom-component/picture/Attr.vue @@ -5,7 +5,7 @@ import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapsho import { storeToRefs } from 'pinia' import { ElIcon, ElMessage } from 'element-plus-secondary' -import { ref, onMounted, onBeforeUnmount } from 'vue' +import { ref, onMounted, onBeforeUnmount, watch } from 'vue' import { beforeUploadCheck, uploadFileResult } from '@/api/staticResource' import { imgUrlTrans } from '@/utils/imgUtils' import eventBus from '@/utils/eventBus' @@ -76,6 +76,14 @@ const init = () => { fileList.value = [] } } + +watch( + () => curComponent.value.propValue.url, + () => { + init() + } +) + onMounted(() => { init() eventBus.on('uploadImg', goFile)