From c6c5e0b4130cc9d3ec89ef67bdc5b09db045fc74 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 8 Apr 2024 09:01:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UploadFile/src/UploadFile.vue | 12 +--- src/views/qms/inspectionMethod/index.vue | 64 +++++++++++++------ .../inspectionMethod/inspectionMethod.data.ts | 17 ++++- 3 files changed, 61 insertions(+), 32 deletions(-) diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index 36fed8b4b..26e97d622 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -148,17 +148,7 @@ const listToString = (list: UploadUserFile[], separator?: string) => { } return strs != '' ? strs.substr(0, strs.length - 1) : '' } -watch( - () => props.modelValue, - (data) => { - if (!data) return - fileList.value = data - }, - { - deep: true, - immediate: true - } -) +