Vue axios's request for Baidu Weather api

want to get such weather and time information

clipboard.png
code
created () {

        let obj = {
            baseURL: "http://api.map.baidu.com/telematics/v3/weather",
            method: "post",
            data: {
                location: "", 
                output: "json",
                ak: "eklfHV01LdEBLSrwUAXZRP6Ctr94f8TO" 
            }
        }
        this.axios.post(obj).then( res => {
            console.log(res)
        })
    
    TypeError: relativeURL.replace is not a function
May.02,2022

You don't understand the usage of

axios. You should just change the code

.
this.axios.post('http://api.map.baidu.com/telematics/v3/weather', 
data: {
    location: "", 
    output: "json",
    ak: "eklfHV01LdEBLSrwUAXZRP6Ctr94f8TO" 
})
.then( res => {
    console.log(res)
})

official document Portal: https://www.kancloud.cn/yunye...

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-1b3a3c8-2c1ee.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-1b3a3c8-2c1ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?