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
|
|
@ -488,11 +488,11 @@ async function setPinnedList() {
|
|||
if (canceled) return;
|
||||
if (list == null) return;
|
||||
|
||||
prefer.set('pinnedUserLists', [list]);
|
||||
prefer.commit('pinnedUserLists', [list]);
|
||||
}
|
||||
|
||||
function removePinnedList() {
|
||||
prefer.set('pinnedUserLists', []);
|
||||
prefer.commit('pinnedUserLists', []);
|
||||
}
|
||||
|
||||
function enableAllDataSaver() {
|
||||
|
|
@ -512,7 +512,7 @@ function disableAllDataSaver() {
|
|||
}
|
||||
|
||||
watch(dataSaver, (to) => {
|
||||
prefer.set('dataSaver', to);
|
||||
prefer.commit('dataSaver', to);
|
||||
}, {
|
||||
deep: true,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue