Skip to content

Commit 181848d

Browse files
authored
fix(authorization): knowledge (#3336)
1 parent 1468bc2 commit 181848d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ui/src/views/resource-authorization/index.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@
5252
<div class="permission-setting p-16 flex" v-loading="rLoading">
5353
<div class="resource-authorization__table">
5454
<h4 class="mb-4">{{ $t('views.resourceAuthorization.permissionSetting') }}</h4>
55-
<el-tabs v-model="activeName" class="resource-authorization__tabs">
55+
<el-tabs
56+
v-model="activeName"
57+
@tab-change="handleTabChange"
58+
class="resource-authorization__tabs"
59+
>
5660
<el-tab-pane
5761
v-for="(item, index) in settingTags"
5862
:key="item.value"
@@ -263,10 +267,14 @@ const dfsFolder = (arr: any[] = [], folderIdMap: any) => {
263267
})
264268
}
265269
270+
const handleTabChange = () => {
271+
getWholeTree(currentUser.value)
272+
}
273+
266274
function getFolder() {
267275
return AuthorizationApi.getSystemFolder(
268276
currentWorkspaceId.value || 'default',
269-
'KNOWLEDGE',
277+
activeName.value,
270278
{},
271279
loading,
272280
)

0 commit comments

Comments
 (0)