This commit is contained in:
Yvan
2026-08-18 15:04:07 +08:00
parent 10ccc005be
commit 1ef8ecb7b2
42 changed files with 3027 additions and 296 deletions
+5 -2
View File
@@ -519,12 +519,15 @@
const getGroup = async () => {
const res = await getApiGroups()
if (res.code === 0) {
const groups = res.data.groups
const groups = Array.isArray(res.data?.groups) ? res.data.groups : []
apiGroupOptions.value = groups.map((item) => ({
label: item,
value: item
}))
apiGroupMap.value = res.data.apiGroupMap
apiGroupMap.value =
res.data?.apiGroupMap && typeof res.data.apiGroupMap === 'object'
? res.data.apiGroupMap
: {}
}
}