vue3.0 微信小程序
rich-text nodes : [{"name":"div","attrs":{"class":"_135editor","style":"white-space:normal;margin:10px auto"},"children":[{"name":"div","attrs":{"style":"display:inline-block"},"children":[{"name":"div","attrs":{"style":"display:flex;justify-content:center;align-items:flex-end"},"children":[{"name":"div","attrs":{"style":"padding-bottom:5px;margin-right:7px;box-sizing:border-box;max-width:100%"},"children":[{"name":"p","attrs":{"style":"font-size:12px;color:rgb(47, 128, 255);letter-spacing:0.5px;transform:scale(0.9)"},"children":[{"name":"strong","attrs":{"style":"color:rgb(33, 33, 34)"},"children":[{"name":"span","attrs":{"style":"font-size:20px"},"children":[{"type":"text","text":"机器其他部件损坏"}]}]},{"name":"br","attrs":{}}]},{"name":"div","attrs":{"style":"box-sizing:border-box;width:65.7708px;height:1px;background-color:rgb(47, 128, 255);margin-top:4px;overflow:hidden;transform:translate(20px, 0px)"},"children":[]}]},{"name":"div","attrs":{"style":";max-width:100%"},"children":[{"name":"div","attrs":{"class":"assistant","style":"box-sizing:border-box;width:35px"},"children":[]},{"name":"div","attrs":{"style":"box-sizing:border-box;width:35px;height:35px;background-color:rgb(47, 128, 255);border-radius:50%"},"children":[{"name":"div","attrs":{"style":"letter-spacing:1.5px;color:rgb(255, 255, 255);line-height:35px;text-align:center"},"children":[{"name":"br","attrs":{}}]}]}]}]}]}]}]
调试基础库:2.22.1
控制台报错:[渲染层错误] [Component] <rich-text>: parse error TypeError: Cannot read property 'replace' of null(env: Windows,mp,1.05.2111300; lib: 2.22.1)
2 个回复
DCloud_UNI_Anne
为什么没人答复你,社区问题/bug处理优先级规则,详情:https://ask.dcloud.net.cn/article/38139
rain晨
你好,请问解决了吗,使用vue3 遇到了这个问题