diff --git a/dbm-ui/frontend/src/views/db-manage/mysql/apply/ApplyMySQL.vue b/dbm-ui/frontend/src/views/db-manage/mysql/apply/ApplyMySQL.vue index e78ff4c5a1..3c9bd8eefc 100644 --- a/dbm-ui/frontend/src/views/db-manage/mysql/apply/ApplyMySQL.vue +++ b/dbm-ui/frontend/src/views/db-manage/mysql/apply/ApplyMySQL.vue @@ -692,9 +692,10 @@ const getDetails = () => { const details: Record = _.cloneDeep(formdata.details); const { cityCode } = regionItemRef.value.getValue(); + const { affinity } = details.resource_spec.backend; const regionAndDisasterParams = { - affinity: details.resource_spec.backend.affinity, + affinity, location_spec: { city: cityCode, sub_zone_ids: [], @@ -739,7 +740,7 @@ }, }, }, - disaster_tolerance_level: details.resource_spec.backend.affinity, + disaster_tolerance_level: affinity, }; } @@ -750,6 +751,7 @@ proxy: formatNodes(formdata.details.nodes.proxy), backend: formatNodes(formdata.details.nodes.backend), }, + disaster_tolerance_level: affinity, }; }; diff --git a/dbm-ui/frontend/src/views/db-manage/redis/apply/ApplyRedis.vue b/dbm-ui/frontend/src/views/db-manage/redis/apply/ApplyRedis.vue index 1d25a2bb14..a50ab28fbc 100644 --- a/dbm-ui/frontend/src/views/db-manage/redis/apply/ApplyRedis.vue +++ b/dbm-ui/frontend/src/views/db-manage/redis/apply/ApplyRedis.vue @@ -821,9 +821,10 @@ const getDetails = () => { const details: Record = _.cloneDeep(state.formdata.details); const { cityCode } = regionItemRef.value.getValue(); + const { affinity } = details.resource_spec.backend_group; const regionAndDisasterParams = { - affinity: details.resource_spec.backend_group.affinity, + affinity, location_spec: { city: cityCode, sub_zone_ids: [], @@ -840,7 +841,7 @@ return { ...details, cluster_shard_num: Number(specInfo.cluster_shard_num), - disaster_tolerance_level: details.resource_spec.backend_group.affinity, + disaster_tolerance_level: affinity, resource_spec: { proxy: { ...details.resource_spec.proxy, @@ -871,6 +872,7 @@ master: formatNodes(state.formdata.details.nodes.master), slave: formatNodes(state.formdata.details.nodes.slave), }, + disaster_tolerance_level: affinity, }; }; const params = {