TypeError: Failed to execute ‘fetch‘ on ‘Window‘: Request with GET/HEAD method cannot have body.

问题描述:

TypeError: Failed to execute ‘fetch‘ on ‘Window‘: Request with GET/HEAD method cannot have body._第1张图片

在使用HttpGet时使用FromBody

解决问题:

TypeError: Failed to execute ‘fetch‘ on ‘Window‘: Request with GET/HEAD method cannot have body._第2张图片

HttpGet使用FromQuery

HttpPost使用FromBody

你可能感兴趣的:(c#)