Commit 248b6e17 by cwq0219

接口

1 parent 26f17404
...@@ -22,9 +22,11 @@ const request = { ...@@ -22,9 +22,11 @@ const request = {
params.timestamp = new Date().getTime() params.timestamp = new Date().getTime()
params.v = '1.0.0' params.v = '1.0.0'
params.format = 'json' params.format = 'json'
// const url = process.env.NODE_ENV === 'production' ? 'router' : params.methods // easy mock
// return GlAxios.get(url, { 'params': sign(params) }) const url = process.env.NODE_ENV === 'production' ? 'router' : params.method
return GlAxios.get('router', { 'params': sign(params) }) return GlAxios.get(url, { 'params': sign(params) })
// 后台接口
// return GlAxios.get('router', { 'params': sign(params) })
} }
} }
export { export {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!