Skip to content

Commit

Permalink
fix: 修复多租户环境下API文档页展示异常的问题
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 32092
  • Loading branch information
Carlmac committed Mar 3, 2025
1 parent 87a6698 commit 7a2b179
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/dashboard-front/src/views/apiDocs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -433,15 +433,18 @@ onBeforeMount(() => {
const { params } = route;
// 如果是多租户模式,直接跳转到网关API文档
if (user.featureFlags?.ENABLE_MULTI_TENANT_MODE) {
curTab.value = 'apigw';
curTab.value = 'gateway';
return;
}
// 记录返回到此页时选中的 tab
curTab.value = params.curTab as TabType || 'gateway';
});
onMounted(async () => {
await fetchComponentSystemList();
// 如果是多租户模式,不需要获取 esb 列表
if (!user.featureFlags?.ENABLE_MULTI_TENANT_MODE) {
await fetchComponentSystemList();
}
});
</script>
Expand Down

0 comments on commit 7a2b179

Please sign in to comment.