post(url, params) { const config = { method: 'post', url: url, headers:{ "Content-type":"application/x-www-form-urlencoded" }, data:qs.stringify(params)||{} };
此時后端似乎不需要在映射請求體 @requestBody 有請求體的話 后端會收不到數據; 這邊需要用qs模塊來處理一下,聽說用 JSON.stringfy()也行,我這邊試了一下不行 不知道是不是操作問題。
轉自 https://blog.csdn.net/clli_Chain/article/details/107659939