Skip to content

Commit

Permalink
fix(frontend): spider变更sql集群选择器问题修复 TencentBlueKing#7877
Browse files Browse the repository at this point in the history
  • Loading branch information
jinquantianxia committed Nov 11, 2024
1 parent b95baac commit a0fa5be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbm-ui/frontend/src/types/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
import('vue')
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import TendbsingleModel from '@services/model/mysql/tendbsingle';
import SqlServerHaClusterModel from '@services/model/sqlserver/sqlserver-ha';
import SqlServerSingleClusterModel from '@services/model/sqlserver/sqlserver-single';
import TendbclusterModel from '@services/model/tendbcluster/tendbcluster';
import { filterClusters } from '@services/source/dbbase';
import { ClusterTypes } from '@common/const';
Expand All @@ -70,7 +71,7 @@
clusterTypeList: ClusterTypes[]
}
type SelectorRowDataType = TendbhaModel | TendbsingleModel | SqlServerHaClusterModel | SqlServerSingleClusterModel
type SelectorRowDataType = TendbhaModel | TendbsingleModel | SqlServerHaClusterModel | SqlServerSingleClusterModel | TendbclusterModel;
defineProps<Props>();
Expand Down Expand Up @@ -142,6 +143,7 @@
const clusterSelectorValue = shallowRef<Record<string, SelectorRowDataType[]>>({
[ClusterTypes.TENDBHA]: [] as TendbhaModel[],
[ClusterTypes.TENDBSINGLE]: [] as TendbsingleModel[],
[ClusterTypes.TENDBCLUSTER]: [] as TendbclusterModel[],
[ClusterTypes.SQLSERVER_HA]: [] as SqlServerHaClusterModel[],
[ClusterTypes.SQLSERVER_SINGLE]: [] as SqlServerSingleClusterModel[],
});
Expand Down

0 comments on commit a0fa5be

Please sign in to comment.