-
Notifications
You must be signed in to change notification settings - Fork 2
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
watchQuery #130
Comments
默认情况下,query的改变不会调用asyncData方法。如果要监听这个行为,例如,在构建分页组件时,可以设置应通过页面组件的watchQuery属性监听参数。 使用watchQuery键设置查询字符串的观察者。如果定义的字符串发生变化,所有组件方法(asyncData、fetch(context)、validate、layout...)都将被调用。默认情况下禁用观看以提高性能。 如果要为所有查询字符串设置观察者,请设置watchQuery: true.
|
还可以使用该功能watchQuery(newQuery, oldQuery)拥有更精致的观察者 |
监听查询字符串的变化 |
No description provided.
The text was updated successfully, but these errors were encountered: