Skip to content

Commit

Permalink
Feat/hover get org path (#1922)
Browse files Browse the repository at this point in the history
Co-authored-by: JoJohw <v_hhwhhuang@tencent.com>
  • Loading branch information
JoJohw and JoJohw authored Sep 4, 2024
1 parent efd841f commit 9972f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/src/views/organization/components/table-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@
render: ({ row, column }) => {
return <>
<bk-popover
content={(row?.organization_paths || []).join('\n')}
content={(row?.organization_paths || []).map(path => <div>{path}</div>)}
disabled={row[column?.field]?.length === 0}
render-type="auto"
theme="dark">
Expand Down Expand Up @@ -633,7 +633,7 @@
if (!row?.organization_paths) {
const currentIndex = tableData.value.findIndex(item => item === row)
getOrganizationPaths(row.id).then(res => {
const organization_paths = res?.data?.organization_paths;
const organization_paths = res?.data?.organization_paths;
tableData.value[currentIndex].organization_paths = organization_paths;
});
}
Expand Down

0 comments on commit 9972f73

Please sign in to comment.