Skip to content

Commit

Permalink
fix(frontend): redis部署机器类型问题修复 #8387
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 25706
  • Loading branch information
jinquantianxia authored and iSecloud committed Dec 3, 2024
1 parent 7ac5710 commit 95e45b6
Show file tree
Hide file tree
Showing 2 changed files with 8 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 @@ -302,7 +302,7 @@
:biz-id="state.formdata.bk_biz_id"
:cloud-id="state.formdata.details.bk_cloud_id"
:cluster-type="typeInfos.cluster_type"
:machine-type="specClusterMachineMap[typeInfos.cluster_type]" />
:machine-type="backendMachineType" />
</BkFormItem>
<BkFormItem
:label="t('访问端口')"
Expand Down Expand Up @@ -581,6 +581,12 @@
};
return types[state.formdata.details.cluster_type as keyof typeof types];
});

const backendMachineType = computed(() =>
typeInfos.value.cluster_type === ClusterTypes.PREDIXY_REDIS_CLUSTER
? ClusterTypes.PREDIXY_REDIS_CLUSTER
: specClusterMachineMap[typeInfos.value.cluster_type],
);
// const isDefaultCity = computed(() => state.formdata.details.city_code === 'default');

const getSmartActionOffsetTarget = () => document.querySelector('.bk-form-content');
Expand Down

0 comments on commit 95e45b6

Please sign in to comment.