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