@@ -121,6 +121,7 @@
class="upload-demo"
drag
action="/api/datacenter/graphic/import"
+ :headers="fileHeaders"
multiple
name="fileName"
:on-progress="progress"
@@ -231,6 +232,11 @@
}]
}
},
+ computed:{
+ fileHeaders() {
+ return {'Content-Type': 'multipart/form-data'}
+ }
+ },
methods: {
progress(event, file, fileList) {
// console.log(event.file, fileList)