Commit 6b91fcec authored by 谢卓城's avatar 谢卓城

1.修复get请求拼错问题

parent a5ba857a
......@@ -36,7 +36,7 @@ class Axios {
get(url, data = null,_config = {}) {
const config = {
..._config,
url: url + urlEncode(data).substr(1),
url: url + (data != null ? '?':'') +urlEncode(data).substr(1),
method: "GET"
};
return this.request(config);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment