// ajax请求默认带上cookie axios.defaults.withCredentials=true; 注意事项: 开发模式webpack代理,不起作用,生产模式nginx代理,就可以正常使用