mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
show whether data is updated after pull down
This commit is contained in:
@@ -267,13 +267,18 @@ export default {
|
||||
}
|
||||
|
||||
const self = this;
|
||||
const force = !!done;
|
||||
|
||||
self.accountsStore.loadAllAccounts({
|
||||
force: true
|
||||
force: force
|
||||
}).then(() => {
|
||||
if (done) {
|
||||
done();
|
||||
}
|
||||
|
||||
if (force) {
|
||||
self.$toast('Account list has been updated');
|
||||
}
|
||||
}).catch(error => {
|
||||
if (done) {
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user