大量修改
This commit is contained in:
14
js/serve/info.js
Normal file
14
js/serve/info.js
Normal file
@@ -0,0 +1,14 @@
|
||||
class InfoServe {
|
||||
// data 是接口请求的参数,默认为空对象,表示这个接口不需要参数
|
||||
async infoList (data = {}) {
|
||||
let http = new Ajax()
|
||||
// suc的返回值(ajax请求到的,后端给我们的数据)
|
||||
return await http.get({
|
||||
url: config.urlList.infoList,
|
||||
// data: data key 和 value 名字一样的时候,可以直接只写一个
|
||||
data
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
let infoServe = new InfoServe
|
||||
Reference in New Issue
Block a user