refactor(frontend): rename store.set -> store.commit

This commit is contained in:
syuilo
2025-03-10 11:27:07 +09:00
parent 08f7e7d9b3
commit b200743845
20 changed files with 113 additions and 113 deletions

View File

@@ -201,9 +201,9 @@ async function saveAs() {
await addTheme(theme.value);
applyTheme(theme.value);
if (store.s.darkMode) {
prefer.set('darkTheme', theme.value);
prefer.commit('darkTheme', theme.value);
} else {
prefer.set('lightTheme', theme.value);
prefer.commit('lightTheme', theme.value);
}
changed.value = false;
os.alert({