Skip to content

Commit 3243d52

Browse files
committed
perf(frontend): 实例选择器类型问题修复 TencentBlueKing#9262
1 parent efbd358 commit 3243d52

File tree

27 files changed

+211
-958
lines changed

27 files changed

+211
-958
lines changed

dbm-ui/frontend/src/components/instance-selector/Index.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
</template>
9696

9797
<script lang="ts">
98-
import type { InjectionKey, Ref } from 'vue';
98+
import { type InjectionKey, type Ref, type VNode } from 'vue';
9999

100100
import TendbclusterMachineModel from '@services/model/tendbcluster/tendbcluster-machine';
101101
import type { ListBase } from '@services/types';
@@ -350,7 +350,9 @@
350350
default: false,
351351
});
352352

353-
const slots = useSlots();
353+
const slots = defineSlots<{
354+
submitTips?: () => VNode;
355+
}>();
354356

355357
const tabListMap: Record<string, PanelListType> = {
356358
[ClusterTypes.REDIS]: [

dbm-ui/frontend/src/components/instance-selector/common/types.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@ export interface IValue {
2323
port: number;
2424
instance_address: string;
2525
cluster_id: number;
26-
cluster_type: MySQLClusterTypes;
26+
cluster_type: ClusterTypes;
27+
db_module_id: number;
28+
db_module_name: string;
29+
master_domain: string;
2730
}

dbm-ui/frontend/src/components/instance-selector/components/RenderManualHost.vue

-250
This file was deleted.

0 commit comments

Comments
 (0)