Skip to content

Commit

Permalink
fix(frontend): tendbcluster、doris的tab缺失 #8175
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 25387
  • Loading branch information
royalpioneer committed Nov 29, 2024
1 parent eb3d5b7 commit f999cb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dbm-ui/frontend/src/components/editable-info/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
isEdit?: boolean;
isCopy?: boolean;
isRequired?: boolean;
render?: (data: Record<string, any>) => VNode | string | null;
render?: () => VNode | string | null;
};

export type EditEmitData = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@
extraParametersCards: () => [],
routeParams: () => ({}),
deployInfo: () =>
({
conf_items: [] as DetailData['conf_items'],
}),
({
conf_items: [] as DetailData['conf_items'],
}),
});

const emits = defineEmits<Emits>();
Expand Down Expand Up @@ -208,7 +208,11 @@
{
label: t('主从方式'),
key: 'sync_type',
render: (data) => <span> {data.sync_type === 'mirroring' ? t('镜像') : data.sync_type} </span>
render: () => <span> {
detailData.value.sync_type === 'mirroring'
? t('镜像')
: detailData.value.sync_type
} </span>
},
],
);
Expand All @@ -231,7 +235,7 @@
if (isSqlServer.value) {
return {
...props.data,
...props.deployInfo.conf_items.reduce<Record<string, string>>((acc, item) => {
...props.deployInfo.conf_items!.reduce<Record<string, string>>((acc, item) => {
acc[item.conf_name] = item.conf_value!;
return acc;
}, {}),
Expand Down

0 comments on commit f999cb4

Please sign in to comment.