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