<mavon-editor
style="width: auto;height: 600px;margin-top: 30px"
@save="saveDoc"
@change="updateDoc"
@imgAdd="imgAdd"
:toolbarsFlag="true"
ref="md"
:ishljs="true"
v-model="paper.contentDetail">
</mavon-editor>
uploadFile(AppConstant.serverBase, file, (response) => {
this.$refs.md.$img2Url(pos, AppConstant.serverBase + response.data.path)
})
注意替换图片路径时,必须使用的是this.$refs.md.$img2Url