fix(sync): guard stale installed refreshes

This commit is contained in:
2026-05-19 02:16:39 +08:00
parent 34551fce7b
commit 839f4017f8
3 changed files with 109 additions and 11 deletions
+12 -2
View File
@@ -254,11 +254,21 @@ const emit = defineEmits<{
}>();
const handleSyncClick = () => {
emit(props.loggedIn ? "sync-to-account" : "request-login");
if (props.loggedIn) {
emit("sync-to-account");
return;
}
emit("request-login");
};
const handleRestoreClick = () => {
emit(props.loggedIn ? "restore-from-account" : "request-login");
if (props.loggedIn) {
emit("restore-from-account");
return;
}
emit("request-login");
};
const onOverlayWheel = (e: WheelEvent) => {