Skip to content

Commit

Permalink
fix(frontend): mysql的Proxy 实例替换关联集群获取错误 TencentBlueKing#7979
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Nov 15, 2024
1 parent d76e736 commit 18df27b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,19 @@
if (!instanceMemo[instance]) {
const row = createRowData({
originProxy: {
cluster_id: item.cluster_id,
ip: item.ip,
bk_cloud_id: item.bk_cloud_id,
bk_host_id: item.bk_host_id,
bk_biz_id: window.PROJECT_CONFIG.BIZ_ID,
port: item.port,
instance_address: instance,
},
relatedClusters: item.related_clusters.map((item) => ({
cluster_id: item.id,
domain: item.master_domain,
})),
relatedClusters: [
{
cluster_id: item.cluster_id,
domain: item.master_domain,
},
],
});
results.push(row);
instanceMemo[instance] = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
:min-width="200"
:required="false"
:width="240">
{{ t('同机关联集群') }}
{{ t('关联集群') }}
</RenderTableHeadColumn>
<RenderTableHeadColumn
:min-width="200"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,14 @@
port: currentData.port,
instance_address: currentData.instance_address,
};
const relatedClusters = currentData.related_clusters.map((item) => ({
cluster_id: item.id,
domain: item.master_domain,
}));
emits('inputFinish', {
originProxy,
relatedClusters,
relatedClusters: [
{
cluster_id: currentData.cluster_id,
domain: currentData.master_domain,
},
],
});
return true;
}),
Expand Down

0 comments on commit 18df27b

Please sign in to comment.