修改图片上传组件报错,挂载全局分页数值

This commit is contained in:
熊丽君
2021-12-15 17:14:48 +08:00
parent 7df87f043e
commit 2f0f0eaeb2
2 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,8 @@ export default {
},
// 上传成功回调
handleUploadSuccess(res) {
this.fileList.push({ name: res.fileName, url: res.fileName });
// this.fileList.push({ name: res.fileName, url: res.fileName });
this.fileList.push({ name: res.msg, url: res.msg });
this.$emit("input", this.listToString(this.fileList));
this.loading.close();
},

View File

@ -46,6 +46,7 @@ Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree
Vue.prototype.page_size = 2
// 全局组件挂载
Vue.component('DictTag', DictTag)