Commit aee3e2c5 by cwq0219

接口

1 parent 248b6e17
...@@ -22,10 +22,8 @@ const request = { ...@@ -22,10 +22,8 @@ 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'
// easy mock
const url = process.env.NODE_ENV === 'production' ? 'router' : params.method const url = process.env.NODE_ENV === 'production' ? 'router' : params.method
return GlAxios.get(url, { 'params': sign(params) }) return GlAxios.get(url, { 'params': sign(params) })
// 后台接口
// return GlAxios.get('router', { 'params': sign(params) }) // return GlAxios.get('router', { 'params': sign(params) })
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!