This commit is contained in:
syuilo
2019-02-20 22:21:12 +09:00
parent 893795a31d
commit ed0fdaddbd
3 changed files with 29 additions and 11 deletions

View File

@ -91,6 +91,9 @@ export default Vue.extend({
watch: {
queue(q) {
this.count(q.length);
},
makePromise() {
this.init();
}
},
@ -115,12 +118,12 @@ export default Vue.extend({
},
reload() {
this.queue = [];
this.notes = [];
this.init();
},
init() {
this.queue = [];
this.notes = [];
this.fetching = true;
this.makePromise().then(x => {
if (Array.isArray(x)) {