|
@@ -12,7 +12,8 @@
|
|
|
:on-success="handleSuccess"
|
|
|
:before-upload="beforeUpload"
|
|
|
class="editor-slide-upload"
|
|
|
- action="https://httpbin.org/post"
|
|
|
+ :headers="getToken"
|
|
|
+ :action="action"
|
|
|
list-type="picture-card"
|
|
|
>
|
|
|
<el-button size="small" type="primary">
|
|
@@ -42,12 +43,19 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- action: `${this.baseUrl}/mall/uploadFile/imageUpload`,
|
|
|
+ action: `${this.baseUrl}/formData/MultiPictareaddData`,
|
|
|
dialogVisible: false,
|
|
|
listObj: {},
|
|
|
fileList: []
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ getToken() {
|
|
|
+ return {
|
|
|
+ 'token': this.$store.getters.token
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
checkAllSuccess() {
|
|
|
return Object.keys(this.listObj).every(item => this.listObj[item].hasSuccess)
|