Skip to content

Commit

Permalink
Merge pull request #1183 from Carlmac/ft_tenant_frontend
Browse files Browse the repository at this point in the history
fix: 修复多租户环境下API文档页展示异常的问题
  • Loading branch information
wklken authored Mar 3, 2025
2 parents 87a6698 + 7a2b179 commit 654801d
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 654801d

Please sign in to comment.