This commit is contained in:
syuilo
2018-02-22 22:51:33 +09:00
parent e651bd12c3
commit 4b228432c1
7 changed files with 92 additions and 87 deletions

View File

@@ -32,13 +32,18 @@ export default Vue.extend({
next: null
};
},
watch: {
mode() {
this._fetch();
}
},
mounted() {
this._fetch(() => {
this.$emit('loaded');
});
},
methods: {
_fetch(cb) {
_fetch(cb?) {
this.fetching = true;
this.fetch(this.mode == 'iknow', this.limit, null, obj => {
this.users = obj.users;