今天遇到一个问题:Error: undefined: /api/taskConfiguration/softListen/getEchartsOne
一开始以为是后台的参数问题,后来发现网上找的关于@RequestParam和@RequestBody的问题,都没有
上图:
最后发现只需要将
export function getBroker(data) {
// eslint-disable-next-line no-debugger
// let date=data.date
return request({
url: '/api/taskConfiguration/softListen/getEchartsOne',
method: 'post',
data
})
}
将 ` 号改为 ’
将飘号改为单引号就好了
然鹅 其实不是前台问题 而是后台
奶奶的 参数传的不对