Skip to content

Commit e19bda9

Browse files
authored
Update image.vue
1 parent b09d142 commit e19bda9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/components/upload/image.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
:before-upload="beforeImageUpload"
2020
:multiple="false"
2121
>
22-
<img v-if="imageUrl" :src="imageUrl" class="image" />
22+
<img v-if="imageUrl" :src="path + imageUrl" class="image" />
2323
<i v-else class="el-icon-plus image-uploader-icon"></i>
2424
</el-upload>
2525
</div>
@@ -70,7 +70,7 @@ export default {
7070
// this.imageUrl = URL.createObjectURL(file.raw);
7171
const { data } = res;
7272
if (data.file) {
73-
this.$emit("change", this.path + data.file.url);
73+
this.$emit("change", data.file.url);
7474
}
7575
},
7676
},

0 commit comments

Comments
 (0)