import axios from 'axios' axios.defaults.withCredentials=true; 如图: 转载于:https://www.cnblogs.com/wangyunhui/p/9075720.html