//设置session(这段代码一定要放在New Vue之前,否则不生效)
Vue.http.interceptors.push((request, next) => {
request.withCredentials=true;
next((response) => {
return response;
});
});
export let vue=new Vue({
router,
render: h => h(Dashboard),
mounted() {
}
}).$mount('#app');