Typescript axios post passes the array to the background to report an error, solve it! Thank you!

async saveMenu(data: Model[]) {

    let reqConfig: AxiosRequestConfig = {
        method: "post",
        url: globalConfig.prefixPath + "/webapp/api/menu/save",
        data: { data: data},
        headers: {
            "Content-Type": "application/json"
        }
    };
    let dr = await Axios.request(reqConfig);
  
    return dr
}

clipboard.png

Apr.02,2022

is caused by circular references again. Use the following code to solve
let cache: any = []

    let str = JSON.stringify(pd, function (key, value) {
        if (typeof value === 'object' && value !== null) {
            if (cache.indexOf(value) !== -1) {
                // Circular reference found, discard key
                return;
            }
            // Store value in our collection
            cache.push(value);
        }
        return value;
    });
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-1b3eb02-2bc7e.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-1b3eb02-2bc7e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?