ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

how to reload data use new apiurl #163

Open jiker-burce opened 7 years ago

jiker-burce commented 7 years ago
zhf883680 commented 7 years ago

you can try this export default { watch: { '$route' (to, from) { //页面传递参数变化时,触发此方法 this.getData(1); } } } https://github.com/zhf883680/zhf-blog/blob/master/src/components/Show.Vue

2017-07-24 0:39 GMT+08:00 BruceGujinhe notifications@github.com:

How to relaod the data when I change the apiurl. such as i have set the name of the object of Vue that is cvue; then set api_url = "/admin/api/users?filter=B"; cvue.api_url = api_url;

well, I want to load new data by click "search" button.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ratiw/vue-table/issues/163, or mute the thread https://github.com/notifications/unsubscribe-auth/AV9txoBP8F-57dsue3CG_xxSpFzWwEy-ks5sQ3dSgaJpZM4OggNH .