littlemon95

Results 6 comments of littlemon95

看看别人的18岁 ,我仿佛是个废物老东西 😢

> I found I was getting this issue because I was using the `keep-alive` property on my `` element. Because of this the page data was cached and so when...

我是这样写的 `this.$refs.md.insertContent(‘markdown语法的图片代码’);` md是在组件上添加的ref属性

> 你粘贴图片有时间响应吗,Chrome浏览器。 没太明白,如果在on-upload-image 事件中调用了外部上传图片接口,是会有等待时间的

> 你好,我的编译器不能粘贴图片,请问是有什么开启的地方吗 需要实现@on-upload-image 事件 我的是这样 `@on-upload-image="handleUploadImage"` ``` handleUploadImage(file) { let imgUrl = ''; backendApi.uploadImage(file).then(res => { imgUrl = res.data.urlPath; this.$refs.md.insertContent(`![image](${imgUrl})`); }).catch(() => { this.$message.error('上传失败'); }); } ```