ReverseProxy.Store icon indicating copy to clipboard operation
ReverseProxy.Store copied to clipboard

前端编辑Cluster时报错, 保存时 也报错

Open foreverhot1019 opened this issue 1 year ago • 1 comments

  1. 维护Cluster时,维护了HttpClient,但是报错 ClusterId未赋值,后端验证报错

  2. Cluster列表,无法点击编辑,selectInfo.healthCheck.passive.enabled 没有值导致,弹出也报错

  3. 编辑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; },`

Image

Image

foreverhot1019 avatar Feb 04 '25 03:02 foreverhot1019

  1. 维护Cluster时,维护了HttpClient,但是报错 ClusterId未赋值,后端验证报错
  2. Cluster列表,无法点击编辑,selectInfo.healthCheck.passive.enabled 没有值导致,弹出也报错
  3. 编辑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; },

Image

Image

前端有点老旧暂时没时间维护,可以的话欢迎PR。

fanslead avatar Feb 05 '25 01:02 fanslead