当前位置:网站首页>Required String parameter ‘XXX‘ is not present

Required String parameter ‘XXX‘ is not present

2022-07-07 08:43:00 White small code

What about the wrong bag , It means that what you send to the back end doesn't exist , There are many reasons why others post blogs , But it can't solve

I'm because   The back-end acceptance is not standardized     It's a post request     He used it parms Pass parameters to accept

So I just


export const getXXX = (data) => {
  return request({
    url: `/api/XXX/XXX`,
    method: 'post',
    params:data
  })
}

Then the problem is solved

原网站

版权声明
本文为[White small code]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070547321442.html