.net core webapi 报错 TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body. 电脑版发表于:2022/7/21 10:34 在接收参数前面加上[FromQuery]即可。不然默认是frombody的,又是get请求所有会报错 ``` public async Task<GeneralReturnModel<LandInfoDto>> Get([FromQuery] PaginationDto paginationDto) { } ```