未验证 提交 72ca5dc9 编写于 作者: 听风 提交者: GitHub

Update image.vue

上级 bdd6b995
......@@ -19,7 +19,7 @@
:before-upload="beforeImageUpload"
:multiple="false"
>
<img v-if="imageUrl" :src="imageUrl" class="image" />
<img v-if="imageUrl" :src="path + imageUrl" class="image" />
<i v-else class="el-icon-plus image-uploader-icon"></i>
</el-upload>
</div>
......@@ -70,7 +70,7 @@ export default {
// this.imageUrl = URL.createObjectURL(file.raw);
const { data } = res;
if (data.file) {
this.$emit("change", this.path + data.file.url);
this.$emit("change", data.file.url);
}
},
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册