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

wepy1.6.0下,computed函数中调用this.$apply()会导致小程序崩溃 #723

Closed
Gcaufy opened this issue Jan 3, 2018 · 2 comments
Closed
Assignees
Labels
bug Fixed inactive Inactive issue, will be auto closed in 7 days

Comments

@Gcaufy
Copy link
Collaborator

Gcaufy commented Jan 3, 2018

Description

wepy1.6.0下,computed函数中调用this.$apply()会导致小程序崩溃, wepy1.5.8下正常。

Environment

  • wepy-cli version: 1.6.0
  • wepy version: 1.6.0

Relevant Code / Logs

computed = {
  msg(){
      this.$apply();
      return '';
  }
}
@Gcaufy
Copy link
Collaborator Author

Gcaufy commented Jan 11, 2018

computed 中使用 apply 是死循环操作,不可以这么使用。

因此加入报错机制。

@stale
Copy link

stale bot commented Jun 13, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
因为这个 Issue 最近没有任何有效回复,所以被自动标记为了stale。 如果在未来7天依旧没有任何激活操作,那么该 Issue 将会被自动关闭。 感谢您的提问。

@stale stale bot added the inactive Inactive issue, will be auto closed in 7 days label Jun 13, 2018
@stale stale bot closed this as completed Jun 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixed inactive Inactive issue, will be auto closed in 7 days
Projects
None yet
Development

No branches or pull requests

1 participant