Skip to content

Commit 07c1f87

Browse files
JustaCatttiSecloud
authored andcommitted
fix(frontend): redis集群部署count字符串问题处理 #10343
# Reviewed, transaction id: 40966
1 parent 4202770 commit 07c1f87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbm-ui/frontend/src/views/db-manage/redis/apply/ApplyRedis.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -605,11 +605,11 @@
605605
const specInfo = specBackendRef.value?.getData();
606606
return {
607607
backend_group: {
608-
count: specInfo?.machine_pair || 0,
608+
count: Number(specInfo?.machine_pair || 0),
609609
spec_id: state.formdata.details.resource_spec.backend_group.spec_id,
610610
},
611611
proxy: {
612-
count: state.formdata.details.resource_spec.proxy.count,
612+
count: Number(state.formdata.details.resource_spec.proxy.count || 0),
613613
spec_id: state.formdata.details.resource_spec.proxy.spec_id,
614614
},
615615
} as ComponentProps<typeof EstimatedCost>['params']['resource_spec'];

0 commit comments

Comments
 (0)