Commit 20e7ecee by wangql

aa

1 parent d45754d8
...@@ -20,9 +20,8 @@ const request = { ...@@ -20,9 +20,8 @@ const request = {
// return GlAxios.get(url, { 'params': sign(params) }) // return GlAxios.get(url, { 'params': sign(params) })
const __type = type || 'get' const __type = type || 'get'
const __params = (type && type.toLowerCase() === 'post') ? sign(params) : { 'params': sign(params) } const __params = (type && type.toLowerCase() === 'post') ? sign(params) : { 'params': sign(params) }
console.log(__type) const __router = (type && type.toLowerCase() === 'post') ? 'router?method=' + params.method : 'router'
console.log(__params) return GlAxios[__type](__router, __params)
return GlAxios[__type]('router', __params)
} }
} }
export { export {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!