From f8ba48fc07570a0e26f75ee21b0b3203cdf1aba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com> Date: Sat, 21 Dec 2024 15:51:21 +0800 Subject: [PATCH] edit --- src/components/Upload/Images.vue | 5 +---- src/components/Upload/file.vue | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/Upload/Images.vue b/src/components/Upload/Images.vue index 6e581a7..f27236a 100644 --- a/src/components/Upload/Images.vue +++ b/src/components/Upload/Images.vue @@ -92,9 +92,6 @@ fileSize: { default: 200, }, - orderNo: { - default: '', - }, fileType: { default: '', }, @@ -179,7 +176,7 @@ let second: string | number = date.getSeconds(); second = second < 10 ? ("0" + second) : second; let time = h + "" + minute + "" + second; - let fileName = (props.orderNo ? (time + '-' + props.orderNo) : time) + "-" + options.file.name + let fileName = time + "-" + options.file.name fileName = fileName.replace(/[\+\_\,\!\|\~\`\(\)\#\$\%\^\&\*\{\}\:\;\"\<\>\?]/g, '') let filePath = props.name + "/" + year + "/" + month + "/" + day + "/" + fileName; loading.value = true; diff --git a/src/components/Upload/file.vue b/src/components/Upload/file.vue index 70d07f0..f0731ba 100644 --- a/src/components/Upload/file.vue +++ b/src/components/Upload/file.vue @@ -106,9 +106,6 @@ fileSize: { default: 200, }, - orderNo: { - default: '', - }, fileType: { default: '', },