use action from store instead of directly modifying state in components

This commit is contained in:
pa
2026-03-08 20:23:17 +09:00
parent b9c874bed0
commit ae0152c28e
9 changed files with 47 additions and 8 deletions

View File

@@ -962,6 +962,10 @@ export const useGroupStore = defineStore('Group', () => {
}
}
function clearGroupInstances() {
groupInstances.value = [];
}
/**
*
* @param {object} json
@@ -1197,6 +1201,7 @@ export const useGroupStore = defineStore('Group', () => {
loadCurrentUserGroups,
handleGroupPost,
handleGroupUserInstances,
clearGroupInstances,
handleGroupMember,
handleGroupPermissions,
handleGroupMemberProps,