/** * 首页的ajax请求中间层封装 */ class IndexfoService { async indexInfo(params) { return await http({ type: 'GET', url: Config.apiUrl.indexInfo, data: params }) } } var indexfoService = new IndexfoService()