Axios.default.baseURL doesn't work?

main.js code is as follows:

import axios from "axios"
axios.default.baseURL = "http://218.17.186.XXX:9104"

component code is as follows:

mounted:function(){
    //
    axios.get("/account/list",{
        headers : { //token  
            Authorization : getCookie("token")  
        }  
    })
    .then( res =>{
        //
        if( res.data.status == 1){
            this.infoData = res.data.data;
        }
    })
}

you can render data normally without axios.default.baseURL interface. After using axios.default.baseURL, you can tell why you can"t find it.


should be defaults ?

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