mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-08-06 18:43:57 +08:00
fix(sync): guard stale installed refreshes
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user