摘要: 在src创建一个文件夹utils再创建request.js文件 import axios from 'axios' //导入axios const instance = axios.create({ baseURL: "https:api.cat-shop.penkuoer.com", //base 阅读全文
posted @ 2020-12-29 17:56 听声是雨 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 自定义一个request.js文件用来封装axios import axios from 'axios' //导入axios const instance=axios.create({ baseURL:"https:api.cat-shop.penkuoer.com",//baseURL会在发送请求 阅读全文
posted @ 2020-12-29 16:43 听声是雨 阅读(105) 评论(0) 推荐(0) 编辑