解决办法
必须要将所有的action方法头都要加上Rote,比如[HttpPost(“TargetSourse”)],此处为简写
参考代码
[Route("[controller]")]
public class ChartDataController : Controller
{
/// <summary>
/// 获取各个指标的源数据
/// </summary>
/// <returns></returns>
[HttpPost("TargetSourse")]
[TokenFilter]
public async Task<ActionResult> TargetSourse([FromBody]TargetParames parames)
{
//方法体
}