When the instance created by axios through create is called, what is the reason why the first parameter of params starts with &?

axios version: 0.18.0 and 0.17.1


// axios
var req = axios.create({
    baseURL: "http://abc.com",
    timeout: 15000
})

// 
req({
    method: "get",
    url: "/node/getList",
    params: {
        a: "a"
     }
})

// 
// http://abc.com/?a=a

//  
//http://abc.com/&a=a

but instances created directly through axios do not have this problem

// 
import axios from "axios"
axios({
    method: "get",
    url: "abc.com"
    params: {
        a: "a"
    }
})

what is the reason for this?

Mar.03,2021

  1. ? separates the actual URL and parameters;
  2. & is the delimiter between parameters specified in URL;
  3. is parsed to &, which should default to the parameter
  4. preceding a _
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-1ea3210-1c27.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-1ea3210-1c27.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?