From 990c152a99e36b4615c3c3c3b06191fc7f58cf70 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 1 Apr 2024 15:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E5=BA=8A=E6=95=B0=E6=8D=AE=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0pdf=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=97=B6=E9=97=B4=E6=88=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trials-panel/visit/crc-upload/components/previousFiles.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/previousFiles.vue b/src/views/trials/trials-panel/visit/crc-upload/components/previousFiles.vue index e19925cc..340d6874 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/components/previousFiles.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/components/previousFiles.vue @@ -98,7 +98,8 @@ export default { this.addFileList = [] for (var i = 0; i < this.selectArr.length; ++i) { const file = await this.fileToBlob(this.selectArr[i]) - const res = await this.OSSclient.put(`/${this.trialId}/ClinicalData/${this.selectArr[i].name}`, file) + var timestamp = Date.now() + const res = await this.OSSclient.put(`/${this.trialId}/ClinicalData/${timestamp}${this.selectArr[i].name}`, file) this.addFileList.push({ fileName: this.selectArr[i].name, path: this.$getObjectName(res.url), url: this.$getObjectName(res.url) }) } this.saveClinicalData()