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

chrome浏览器自动翻译导致data更新后view不更新,不是因为data里没有定义,也不是更新数组的问题 #9008

Closed
xhhcocos2d opened this issue Oct 31, 2018 · 4 comments

Comments

@xhhcocos2d
Copy link

Version

2.5.17

Reproduction link

https://github.com/xhhcocos2d/demo01.git

Steps to reproduce

1.将html标签的lang属性设置为en:
2.将chrome的翻译网页功能打开将英文翻译成中文
3.翻译完成后修改data里面的数据视图就不再更新

What is expected?

翻译成中文后数据更新的时候更新视图

What is actually happening?

数据更新后视图不更新,点击显示原网页后恢复正常

@flyyang
Copy link
Contributor

flyyang commented Oct 31, 2018

dom变了吧。跟 vue 没关系了。

@xhhcocos2d
Copy link
Author

xhhcocos2d commented Oct 31, 2018 via email

@Justineo
Copy link
Member

Vue.js 应用并不保证能在 Google 翻译下正常工作。

@siliushi
Copy link

两种解决方法
1、先把data赋空值,在重新赋值
2、view层不要直接绑数据,通过html片段插入

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

4 participants