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?