Persist hideAnswer switch
This commit is contained in:
@@ -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));
|
||||
}
|
||||
Reference in New Issue
Block a user