diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index cf97c39..b72024c 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -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(); }, diff --git a/src/main.js b/src/main.js index 96b5ed0..8bae738 100644 --- a/src/main.js +++ b/src/main.js @@ -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)