mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
show whether data is updated after pull down
This commit is contained in:
@@ -48,6 +48,7 @@ import { useUserStore } from '@/stores/user.js';
|
||||
import { useTokensStore } from '@/stores/token.js';
|
||||
|
||||
import iconConstants from '@/consts/icon.js';
|
||||
import { isEquals } from '@/lib/common.js';
|
||||
import { parseDeviceInfo, parseUserAgent } from '@/lib/misc.js';
|
||||
|
||||
import { onSwipeoutDeleted } from '@/lib/ui.mobile.js';
|
||||
@@ -118,6 +119,12 @@ export default {
|
||||
done();
|
||||
}
|
||||
|
||||
if (isEquals(self.tokens, tokens)) {
|
||||
self.$toast('Session list is up to date');
|
||||
} else {
|
||||
self.$toast('Session list has been updated');
|
||||
}
|
||||
|
||||
self.tokens = tokens;
|
||||
}).catch(error => {
|
||||
if (done) {
|
||||
|
||||
Reference in New Issue
Block a user