diff --git a/src/views/bigscreenDesigner/designer/components/customUploadNew.vue b/src/views/bigscreenDesigner/designer/components/customUploadNew.vue index 0184f81..d1b562a 100644 --- a/src/views/bigscreenDesigner/designer/components/customUploadNew.vue +++ b/src/views/bigscreenDesigner/designer/components/customUploadNew.vue @@ -72,18 +72,18 @@ export default { let that = this; let formdata = new FormData(); formdata.append("file", file); - // axios - // .post(this.requestUrl, formdata, { - // headers: that.headers - // }) - // .then(response => { - // let res = response.data; - // if (res.code === "200") { - // that.uploadImgUrl = res.data.urlPath; - // that.$emit("input", that.uploadImgUrl); - // that.$emit("change", that.uploadImgUrl); - // } - // }); + axios + .post(this.requestUrl, formdata, { + headers: that.headers + }) + .then(response => { + let res = response.data; + if (res.code === "200") { + that.uploadImgUrl = res.data.urlPath; + that.$emit("input", that.uploadImgUrl); + that.$emit("change", that.uploadImgUrl); + } + }); }, changeInput(e) { // if (e) {