Commit 23a532dc by 梁建民

js

parent 8ad315ee
......@@ -28,7 +28,7 @@ Object.keys(filters).forEach(key => Vue.filter(key, filters[key]));
Vue.use(directive);
//设置请求头
var csrf = Util.getCookie('Yo4teW_csrf') || '';
var csrf = Util.getCookie('Yo4teW_csrf') || ''; //解决接口返回系统错误问题
Vue.prototype.$http = axios;
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.withCredentials = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment