refactor(frontend): rename store.set -> store.commit
This commit is contained in:
parent
08f7e7d9b3
commit
b200743845
20 changed files with 113 additions and 113 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue