12345678910111213 |
- const http = uni.$u.http
- // post请求,获取菜单
- export const loginRes = (params, config = {}) => http.post('admin/api.login/index', params, config)
- export const updata = (params, config = {}) => http.post('admin/api.login/appupdata', params, config)
- export const logout = (params, config = {}) => http.post('admin/api.login/logout', params, config)
- export const register = (params, config = {}) => http.post('admin/api.login/register', params, config)
- export const loginRes1 = (params, config = {}) => http.post('admin/api.test/index', params, config)
- // get请求,获取菜单,注意:get请求的配置等,都在第二个参数中,详见前面解释
- export const wel = (data) => http.get('admin/api.api/noticelist', data)
|