Skip to content

Commit

Permalink
fix: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri0528 committed Sep 18, 2023
1 parent fa6f19f commit 8cf9ce2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/pages/src/views/data-source/local-details/UserInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@

<script setup lang="ts">
import { Message } from 'bkui-vue';
import { computed, inject, onMounted, reactive, ref, watch } from 'vue';
import { computed, defineProps, inject, onMounted, reactive, ref, watch } from 'vue';
import { useRoute } from 'vue-router';
import EditUser from './EditUser.vue';
Expand All @@ -119,6 +119,11 @@ import ViewUser from './ViewUser.vue';
import Empty from '@/components/Empty.vue';
import { getDataSourceUserDetails, getDataSourceUsers } from '@/http/dataSourceFiles';
defineProps({
dataSourceId: {
type: Number,
},
});
const route = useRoute();
const currentId = computed(() => Number(route.params.id));
Expand Down
4 changes: 3 additions & 1 deletion src/pages/src/views/data-source/local-details/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
:name="item.name"
:label="item.label"
>
<UserInfo v-if="activeKey === 'user'" />
<UserInfo
v-if="activeKey === 'user'"
:data-source-id="currentId" />
<PswInfo v-else />
</bk-tab-panel>
</bk-tab>
Expand Down

0 comments on commit 8cf9ce2

Please sign in to comment.