File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ui/src/views/system/user-manage Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9696 <template #default =" { row } " >
9797 <el-popover :width =" 400" >
9898 <template #reference >
99- <TagGroup class =" cursor" :tags =" row.role_name" tooltipDisabled />
99+ <TagGroup class =" cursor" :tags =" row.role_name" tooltipDisabled />
100100 </template >
101101 <template #default >
102102 <el-table :data =" row.role_workspace" >
@@ -238,10 +238,10 @@ function getList() {
238238 .getUserManage (paginationConfig , params , loading )
239239 .then ((res ) => {
240240 userTableData .value = res .data .records .map ((item : any ) => ({
241- ... item ,
242- role_workspace: Object .entries (item .role_workspace ).map (([role , workspaces ]) => ({
241+ ... item ,
242+ role_workspace: Object .entries (item .role_workspace ?? {} ).map (([role , workspaces ]) => ({
243243 role ,
244- workspace: (workspaces as string [])?.[0 ] === ' None' ? ' -' : (workspaces as string [])?.join (" , " )
244+ workspace: (workspaces as string [])?.[0 ] === ' None' ? ' -' : (workspaces as string [])?.join (" , " )
245245 }))
246246 }))
247247 paginationConfig .total = res .data .total
You can’t perform that action at this time.
0 commit comments