show whether data is updated after pull down

This commit is contained in:
MaysWind
2023-06-18 22:43:47 +08:00
parent 55ad7b2e81
commit eb2e2b0a26
15 changed files with 102 additions and 17 deletions
@@ -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) {