Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

遇到一个奇怪的问题 #54

Open
zxzhgk opened this issue Oct 27, 2018 · 2 comments
Open

遇到一个奇怪的问题 #54

zxzhgk opened this issue Oct 27, 2018 · 2 comments

Comments

@zxzhgk
Copy link

zxzhgk commented Oct 27, 2018

有一个文章详情页用到了富文本组间,初次进入后页面是正常渲染的,然后退出通过不同的id进入后,显示的还是上次的富文本内容,无法更新为当前的,页面的其他数据都可以更新

@zxzhgk
Copy link
Author

zxzhgk commented Oct 27, 2018

同一个页面多次显示时,只会渲染第一个页面的富文本内容,后面的页面都不会更新

@zxzhgk
Copy link
Author

zxzhgk commented Oct 29, 2018

多次测试发现

  1. mpvue-wxParse 最初是使用计算属性来生成node 节点,页面退出后重新进入无法再次触发计算属性来生成节点。改用函数后可以避免这个问题。但是会遇到第二个问题
  2. 模版通过v-for 遍历上面生成的node数组来渲染数据,但是当node数组发生变化后,v-for 没能触发,到这里就不知道如何处理了
  3. 目前只能暂时用原生的组件代替了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant