Commit 248b6e17 by cwq0219

接口

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