mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: ui error
This commit is contained in:
parent
9541b27d76
commit
de68eef276
|
|
@ -96,7 +96,7 @@
|
|||
<template #default="{ row }">
|
||||
<el-popover :width="400">
|
||||
<template #reference>
|
||||
<TagGroup class="cursor" :tags="row.role_name" tooltipDisabled />
|
||||
<TagGroup class="cursor" :tags="row.role_name" tooltipDisabled/>
|
||||
</template>
|
||||
<template #default>
|
||||
<el-table :data="row.role_workspace">
|
||||
|
|
@ -238,10 +238,10 @@ function getList() {
|
|||
.getUserManage(paginationConfig, params, loading)
|
||||
.then((res) => {
|
||||
userTableData.value = res.data.records.map((item: any) => ({
|
||||
...item,
|
||||
role_workspace: Object.entries(item.role_workspace).map(([role, workspaces]) => ({
|
||||
...item,
|
||||
role_workspace: Object.entries(item.role_workspace ?? {}).map(([role, workspaces]) => ({
|
||||
role,
|
||||
workspace: (workspaces as string[])?.[0] === 'None' ? '-': (workspaces as string[])?.join(", ")
|
||||
workspace: (workspaces as string[])?.[0] === 'None' ? '-' : (workspaces as string[])?.join(", ")
|
||||
}))
|
||||
}))
|
||||
paginationConfig.total = res.data.total
|
||||
|
|
|
|||
Loading…
Reference in New Issue