Skip to content

Commit

Permalink
fix(frontend): tendbcluster业务下数据库配置异常修复 TencentBlueKing#7306
Browse files Browse the repository at this point in the history
  • Loading branch information
jinquantianxia committed Oct 12, 2024
1 parent c2a6be1 commit d5d59dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const useBaseDetails = (immediateFetch = true) => {
const parentInfo = (node.value.parentId as string).split('-');
id = Number(parentInfo[1]);
}
if ([DBTypes.MYSQL, DBTypes.SQLSERVER].includes(dbType.value)) {
if ([DBTypes.MYSQL, DBTypes.TENDBCLUSTER, DBTypes.SQLSERVER].includes(dbType.value)) {
fetchModuleConfig(id);
} else if (notModuleClusters.includes(dbType.value)) {
fetchLevelConfig();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const useTreeData = (treeState: TreeState) => {
mysql: getMysqlResourceTree,
mongodb: getMongoDBResourceTree,
sqlserver: geSqlserverResourceTree,
tendbcluster: getMysqlResourceTree,
};

const activeTreeNode = computed(() => treeState.activeNode);
Expand Down

0 comments on commit d5d59dc

Please sign in to comment.