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

真机测试时sync无效问题 #463

Closed
yifan18 opened this issue Oct 24, 2017 · 2 comments
Closed

真机测试时sync无效问题 #463

yifan18 opened this issue Oct 24, 2017 · 2 comments

Comments

@yifan18
Copy link

yifan18 commented Oct 24, 2017

结构是这样的
父组件中

//view
{{duration}} // 点击后+1
<ac :count.sync="duration"></ac>
<button @tap='add'>+1</button>

//script
data={ duration: 100 }
components = {ac: AC}
methods={
    add() { this.duration = this.duration + 1; }
}

子组件中

// view 
<view>{{count}}</view> // 点击按钮后 在pc上会+1  在真机上不会变

另外child中props count设置twoWay:true 在真机中也不会同步更新父组件 这是什么原因引起的呢?
在微信开发工具中都是正常的

我的环境是

    "wepy": "^1.5.8",
    "wepy-async-function": "^1.4.4",
@Gcaufy
Copy link
Collaborator

Gcaufy commented Oct 24, 2017

#272
#270

@yifan18 yifan18 closed this as completed Oct 24, 2017
@yifan18
Copy link
Author

yifan18 commented Oct 24, 2017

@Gcaufy 多谢

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

2 participants