mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
the update function should use post instead of get (#5703)
This commit is contained in:
parent
b31ba7e18b
commit
2d71930837
@ -108,7 +108,7 @@ public class AlertPluginInstanceController extends BaseController {
|
||||
@ApiImplicitParam(name = "instanceName", value = "ALERT_PLUGIN_INSTANCE_NAME", required = true, dataType = "String", example = "DING TALK"),
|
||||
@ApiImplicitParam(name = "pluginInstanceParams", value = "ALERT_PLUGIN_INSTANCE_PARAMS", required = true, dataType = "String", example = "ALERT_PLUGIN_INSTANCE_PARAMS")
|
||||
})
|
||||
@GetMapping(value = "/update")
|
||||
@PostMapping(value = "/update")
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
@ApiException(UPDATE_ALERT_PLUGIN_INSTANCE_ERROR)
|
||||
@AccessLogAnnotation(ignoreRequestArgs = "loginUser")
|
||||
|
@ -446,7 +446,7 @@ export default {
|
||||
*/
|
||||
updateAlertPluginInstance ({ state }, payload) {
|
||||
return new Promise((resolve, reject) => {
|
||||
io.get('alert-plugin-instance/update', payload, res => {
|
||||
io.post('alert-plugin-instance/update', payload, res => {
|
||||
resolve(res)
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
|
Loading…
Reference in New Issue
Block a user