ruoyi-ui/src/components/ImageUpload/index.vue
File was renamed from ruoyi-ui/src/components/UploadImage/index.vue @@ -43,7 +43,7 @@ data() { return { dialogVisible: false, uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址 uploadImgUrl: process.env.VUE_APP_BASE_API + "/file/upload", // 上传的图片服务器地址 headers: { Authorization: "Bearer " + getToken(), }, @@ -60,7 +60,7 @@ this.$emit("input", ""); }, handleUploadSuccess(res) { this.$emit("input", res.url); this.$emit("input", res.data.url); this.loading.close(); }, handleBeforeUpload() {