关于内置组件 editor 编译成apk 的时候 .html错误
无法获取 editor组件的内容
[Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'html' of undefined"
20:12:49.963 (found at pages/details/publish_html.vue:1)
20:12:49.994 TypeError: Cannot read property 'html' of undefined
sendDatainote == editor组件绑定
this.sendDatainote.detail.html;
===
说明: h5版本 是正常的 不知道问题在哪儿
====
关于内置组件 editor 编译成apk 的时候 获取.html属性 错误
getContents() {
let _this = this
this.editorCtx.getContents({
success(res) {
//_this.$emit('getContents', res.html)
_this.sendData.inote=res.html;//this.sendDatainote.detail.html;
console.log("getContentsres",res);
}
})
},
这个也是一样 android apk 无法获取内容
===
有人帮忙解答么?
2 个回复
w***@qq.com (作者)
关于内置组件 editor 编译成apk 的时候 获取.html属性 错误
getContents() {
let _this = this
this.editorCtx.getContents({
success(res) {
//_this.$emit('getContents', res.html)
_this.sendData.inote=res.html;//this.sendDatainote.detail.html;
console.log("getContentsres",res);
}
})
},
这个也是一样 android apk 无法获取内容
z***@163.com
我也遇到这个问题,老兄解决了吗