|
@@ -144,6 +144,8 @@
|
|
|
this.uploadFileList.push({name: res.data.file_name, url: res.data.file_url_abs, path: res.data.file_url});
|
|
this.uploadFileList.push({name: res.data.file_name, url: res.data.file_url_abs, path: res.data.file_url});
|
|
|
console.log(this.uploadFileList)
|
|
console.log(this.uploadFileList)
|
|
|
}
|
|
}
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.log(err)
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -286,19 +288,15 @@
|
|
|
formData.append("lastModifiedDate", file.lastModifiedDate);
|
|
formData.append("lastModifiedDate", file.lastModifiedDate);
|
|
|
formData.append("size", file.size);
|
|
formData.append("size", file.size);
|
|
|
formData.append("file", file);
|
|
formData.append("file", file);
|
|
|
- this.$axios
|
|
|
|
|
- .$post(`/file/proxyUpload`, formData, {
|
|
|
|
|
- headers: {"Content-Type": "multipart/form-data"}
|
|
|
|
|
- })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- this.cover_url = (res.data && res.data.url) || "";
|
|
|
|
|
- this.fileList = [
|
|
|
|
|
- {
|
|
|
|
|
- name: "file.name",
|
|
|
|
|
- url: this.cover_url
|
|
|
|
|
- }
|
|
|
|
|
- ];
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ this.$axios.$post(`/file/proxyUpload`, formData, {headers: {"Content-Type": "multipart/form-data"}}).then(res => {
|
|
|
|
|
+ this.cover_url = (res.data && res.data.url) || "";
|
|
|
|
|
+ this.fileList = [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "file.name",
|
|
|
|
|
+ url: this.cover_url
|
|
|
|
|
+ }
|
|
|
|
|
+ ];
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
workNameBlur(e) {
|
|
workNameBlur(e) {
|
|
|
this.workName = this.workName.replace(/[&|\*|#|\\]/g, "");
|
|
this.workName = this.workName.replace(/[&|\*|#|\\]/g, "");
|