熊飞 2024-01-15 10:33:50 +08:00
parent 62fe758194
commit a199e6c368
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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