src/api/index.js
//当前这个模块:API进行统一管理import request from './request'//发请求:axios发请求返回结果Promise对象export const reqCategoryList = () => requests({ url: '/product/getBaseCategoryList', methods: 'get' });