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

@@ -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,
});