全局设置axios发送cookie(axios 默认不发送cookie)

import axios from 'axios'
axios.defaults.withCredentials=true;

 如图:

 

 

posted @ 2018-05-23 10:44  neo_o  阅读(3669)  评论(0)    收藏  举报

愿你的生活只有诗和远方