Persist hideAnswer switch

This commit is contained in:
2025-10-06 12:19:07 +02:00
parent cbd126c7a2
commit ae1f65f262
5 changed files with 25 additions and 5 deletions
+12
View File
@@ -0,0 +1,12 @@
export const useSettingsStore = defineStore(
'picSettings',
() => {
const hideAnswers = ref(true);
return { hideAnswers };
},
{ persist: true }
);
if (import.meta.hot) {
import.meta.hot.accept(acceptHMRUpdate(useSettingsStore, import.meta.hot));
}