From b3cc45ac606051533398f47a2afd4b9d1db2c914 Mon Sep 17 00:00:00 2001 From: cxymds Date: Sat, 22 Feb 2025 22:25:42 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=20=E7=94=A8=E6=88=B7=E7=BB=84=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=20=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/users/group-edit.vue | 40 +++++----- components/users/group/members.vue | 107 +++++++++++++++----------- components/users/group/policies.vue | 103 ++++++++++++++----------- components/users/tabs/group.vue | 115 ++++++++++++++++++---------- composables/useGroups.ts | 8 +- 5 files changed, 219 insertions(+), 154 deletions(-) diff --git a/components/users/group-edit.vue b/components/users/group-edit.vue index 57edd89..257d213 100644 --- a/components/users/group-edit.vue +++ b/components/users/group-edit.vue @@ -8,15 +8,19 @@ class="max-w-screen-md" :segmented="{ content: true, - action: true, + action: true }"> - + - + diff --git a/composables/useGroups.ts b/composables/useGroups.ts index efcd4e8..a840427 100644 --- a/composables/useGroups.ts +++ b/composables/useGroups.ts @@ -7,7 +7,7 @@ export const useGroups = () => { * @returns */ const listGroup = async () => { - return await $api.get("/groups") + return await $api.get('/groups') } /** @@ -16,7 +16,7 @@ export const useGroups = () => { * @returns */ const getGroup = async (name: string) => { - return await $api.get(`/group/${encodeURIComponent(name)}`) + return await $api.get(`/group?group=${encodeURIComponent(name)}`) } /** @@ -25,7 +25,7 @@ export const useGroups = () => { * @returns */ const createGroup = async (data: any) => { - return await $api.post("/groups", data) + return await $api.post('/groups', data) } /** @@ -74,6 +74,6 @@ export const useGroups = () => { removeGroup, updateGroup, updateGroupStatus, - updateGroupMembers, + updateGroupMembers } }