From 6dff6aa79873c37c1eed1882aa3fc49df2359f84 Mon Sep 17 00:00:00 2001 From: lijianqiiii Date: Mon, 21 Jul 2025 19:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E7=AB=A0=E5=9B=BE=E7=89=87=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=A4=84=E7=90=86BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../task/components/stamp/StampInfo.vue | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/src/views/workflow/task/components/stamp/StampInfo.vue b/src/views/workflow/task/components/stamp/StampInfo.vue index e527674..2c7ea30 100644 --- a/src/views/workflow/task/components/stamp/StampInfo.vue +++ b/src/views/workflow/task/components/stamp/StampInfo.vue @@ -241,24 +241,22 @@ } } async function submit() { - let valid = await onCheck(); - let res = false; - if (valid) { - if (data.info.fileType === StampFileTypeAttributes.UPLOAD_PICTURES) { - if (!data.photoUrl) { - message.error(t('照片未上传')); - return false; - } else { - data.info.fileUrl = data.photoUrl; - } - } else { - if (!data.signUrl) { - message.error(t('签名未上传')); - return false; - } else { - data.info.fileUrl = data.signUrl; - } - } + let valid = await onCheck(); + let res = false; + if (valid) { + if (data.info.fileType === StampFileTypeAttributes.UPLOAD_PICTURES) { + if (!data.photoUrl) { + message.error(t('照片未上传')); + return false; + } + } else { + if (!data.signUrl) { + message.error(t('签名未上传')); + return false; + } else { + data.info.fileUrl = data.signUrl; + } + } try { if (props.id) { res = await putStamp(props.id, props.type, data.info);