use action from store instead of directly modifying state in components

This commit is contained in:
pa
2026-03-08 20:15:37 +09:00
parent 3d3ad27ca0
commit eeb5288027
13 changed files with 61 additions and 8 deletions

View File

@@ -233,6 +233,13 @@ export const useVrcxStore = defineStore('Vrcx', () => {
}
}
/**
* @param {string} value
*/
function setProxyServer(value) {
proxyServer.value = value;
}
/**
*
*/
@@ -862,6 +869,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
appStartAt,
proxyServer,
setProxyServer,
currentlyDroppingFile,
isRegistryBackupDialogVisible,
ipcEnabled,