|
|
@@ -40,7 +40,8 @@ export default {
|
|
|
},
|
|
|
value: [Array, String],
|
|
|
beforeUpload: Function,
|
|
|
- disabled: Boolean
|
|
|
+ disabled: Boolean,
|
|
|
+ category: Array
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
@@ -66,9 +67,11 @@ export default {
|
|
|
httpRequest(params) {
|
|
|
const file = params.file;
|
|
|
this.getBase64(file).then(res => {
|
|
|
- this.$service.common.uploadImg({ content: res }).then(subRes => {
|
|
|
- params.onSuccess(subRes);
|
|
|
- });
|
|
|
+ this.$service.common
|
|
|
+ .uploadImg({ content: res, categoryId: this.category })
|
|
|
+ .then(subRes => {
|
|
|
+ params.onSuccess(subRes);
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
handleRemove(file, fileList) {
|