A文件导出
var $axios = axios.create({}); export default $axios
B文件接收后如何给axios设置cookie?
B文件中
import $axios from "./A"; $axios.defaults.withCredentials = true; export default $axios;
1.4m articles
1.4m replys
5 comments
57.0k users