We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b09d142 commit e19bda9Copy full SHA for e19bda9
web/src/components/upload/image.vue
@@ -19,7 +19,7 @@
19
:before-upload="beforeImageUpload"
20
:multiple="false"
21
>
22
- <img v-if="imageUrl" :src="imageUrl" class="image" />
+ <img v-if="imageUrl" :src="path + imageUrl" class="image" />
23
<i v-else class="el-icon-plus image-uploader-icon"></i>
24
</el-upload>
25
</div>
@@ -70,7 +70,7 @@ export default {
70
// this.imageUrl = URL.createObjectURL(file.raw);
71
const { data } = res;
72
if (data.file) {
73
- this.$emit("change", this.path + data.file.url);
+ this.$emit("change", data.file.url);
74
}
75
},
76
0 commit comments