Axios post requests nested objects. When passing parameters, the nested objects become [object Object]

request of the requested object

   

Apr.07,2021

JSON.stringify(req)

I tried not to, did you use qs to transfer


found that he accidentally wrote an axios decorator code:

axios.interceptors.request.use(function (config) {
    console.log(config);
    config.transformRequest = [function (data) {
        let ret = '';
        for (let it in data) {
            ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&';
        }
        return ret;
    }];
    // 
    return config;
}, function (error) {
    // 
    return Promise.reject(error);
});
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e7da54-46756.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e7da54-46756.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?