前端编辑Cluster时报错, 保存时 也报错
-
维护Cluster时,维护了HttpClient,但是报错 ClusterId未赋值,后端验证报错
-
Cluster列表,无法点击编辑,selectInfo.healthCheck.passive.enabled 没有值导致,弹出也报错
-
编辑Cluster,保存 后端报错,疑似数据状态 不同步 `handleEdit(row) { row["IsEdit"] = true; if (.isEmpty(row.healthCheck)) { row.healthCheck = {} } if (!.isEmpty(row.httpRequest)) { row.httpRequest.enabled = true; } if (!.isEmpty(row.httpClient)) { row.httpClient.enabled = true; } if (.isEmpty(row.healthCheck.active)) { row.healthCheck.active = {} } if (.isEmpty(row.healthCheck.passive)) { row.healthCheck.passive = {} } if (!_.isBoolean(row.healthCheck.active.enabled) && .isEmpty(row.healthCheck.active.enabled)) { row.healthCheck.active.enabled = false; } if (!.isBoolean(row.healthCheck.passive.enabled) && _.isEmpty(row.healthCheck.passive.enabled)) { row.healthCheck.passive.enabled = false; }
this.currentCluster = _.cloneDeep(row); this.showClusterModal = true; },`
- 维护Cluster时,维护了HttpClient,但是报错 ClusterId未赋值,后端验证报错
- Cluster列表,无法点击编辑,selectInfo.healthCheck.passive.enabled 没有值导致,弹出也报错
- 编辑Cluster,保存 后端报错,疑似数据状态 不同步
handleEdit(row) { row["_IsEdit"] = true; if (_.isEmpty(row.healthCheck)) { row.healthCheck = {} } if (!_.isEmpty(row.httpRequest)) { row.httpRequest.enabled = true; } if (!_.isEmpty(row.httpClient)) { row.httpClient.enabled = true; } if (_.isEmpty(row.healthCheck.active)) { row.healthCheck.active = {} } if (_.isEmpty(row.healthCheck.passive)) { row.healthCheck.passive = {} } if (!_.isBoolean(row.healthCheck.active.enabled) && _.isEmpty(row.healthCheck.active.enabled)) { row.healthCheck.active.enabled = false; } if (!_.isBoolean(row.healthCheck.passive.enabled) && _.isEmpty(row.healthCheck.passive.enabled)) { row.healthCheck.passive.enabled = false; } this.currentCluster = _.cloneDeep(row); this.showClusterModal = true; },
前端有点老旧暂时没时间维护,可以的话欢迎PR。