From a199e6c36883267748cea809a44bc4d6130b45b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E9=A3=9E?= Date: Mon, 15 Jan 2024 10:33:50 +0800 Subject: [PATCH] 1 --- .../attachment/components/CommonTemplate/TemplateForm.vue | 2 +- .../attachment/components/EmailTemplate/TemplateForm.vue | 2 +- .../attachment/components/SignatureTemplate/TemplateForm.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/dictionary/attachment/components/CommonTemplate/TemplateForm.vue b/src/views/dictionary/attachment/components/CommonTemplate/TemplateForm.vue index c0f709d7..d81b9b90 100644 --- a/src/views/dictionary/attachment/components/CommonTemplate/TemplateForm.vue +++ b/src/views/dictionary/attachment/components/CommonTemplate/TemplateForm.vue @@ -163,7 +163,7 @@ export default { async handleUploadFile(param) { this.loading = true var file = await this.fileToBlob(param.file) - const res = await this.OSSclient.put(`/System/GeneralDocuments/${param.file.name}`, file) + const res = await this.OSSclient.put(`/System/GeneralDocuments/${param.file.name}${new Date().getTime()}`, file) this.fileList.push({ name: param.file.name, path: this.$getObjectName(res.url), url: this.$getObjectName(res.url)}) this.form.Path = this.$getObjectName(res.url) this.form.Name = param.file.name diff --git a/src/views/dictionary/attachment/components/EmailTemplate/TemplateForm.vue b/src/views/dictionary/attachment/components/EmailTemplate/TemplateForm.vue index 948d19e8..36a71964 100644 --- a/src/views/dictionary/attachment/components/EmailTemplate/TemplateForm.vue +++ b/src/views/dictionary/attachment/components/EmailTemplate/TemplateForm.vue @@ -183,7 +183,7 @@ export default { async handleUploadFile(param) { this.loading = true var file = await this.fileToBlob(param.file) - const res = await this.OSSclient.put(`/System/eMailAttachmentTemplate/${param.file.name}`, file) + const res = await this.OSSclient.put(`/System/eMailAttachmentTemplate/${param.file.name}${new Date().getTime()}`, file) this.fileList.push({ name: param.file.name, path: this.$getObjectName(res.url), url: this.$getObjectName(res.url)}) this.form.Path = this.$getObjectName(res.url) this.form.Name = param.file.name diff --git a/src/views/dictionary/attachment/components/SignatureTemplate/TemplateForm.vue b/src/views/dictionary/attachment/components/SignatureTemplate/TemplateForm.vue index 335913e7..6f8cbc7d 100644 --- a/src/views/dictionary/attachment/components/SignatureTemplate/TemplateForm.vue +++ b/src/views/dictionary/attachment/components/SignatureTemplate/TemplateForm.vue @@ -181,7 +181,7 @@ export default { async handleUploadFile(param) { this.loading = true var file = await this.fileToBlob(param.file) - const res = await this.OSSclient.put(`/System/DocumentToSign/${param.file.name}`, file) + const res = await this.OSSclient.put(`/System/DocumentToSign/${param.file.name}${new Date().getTime()}`, file) this.fileList.push({ name: param.file.name, path: this.$getObjectName(res.url), url: this.$getObjectName(res.url) }) this.form.Path = this.$getObjectName(res.url) this.form.Name = param.file.name