dengliming opened a new issue, #637: URL: https://github.com/apache/shenyu-dashboard/issues/637
## Description In the springCloud (`pluginId === "8"`) branch of `Selector.handleSubmit`, `handle[index] = data` is rebuilt for every handle field and `values.divideUpstreams`/`values.gray` are deleted after the first iteration, so if the selector handle definition has more than one field only the last field survives and the upstream data is lost. `delete values.key` should be `delete values.keys`, so the internal `keys` array is posted to the API. ## Location (Lines refer to `master @ 83969a5`.) - `src/routes/Plugin/Common/Selector.js:318-336` ## Impact SpringCloud selectors with multi-field handle definitions lose `divideUpstreams`/`gray`, and an extraneous `keys` array is sent with every submit. ## Suggested fix Build the handle object once outside the per-field loop, and delete `values.keys`. ## Related existing None -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
