2017-02-26 18 views
0

我可以得到一个200状态响应,并在控制台预览部分显示'/ home'视图我如何触发自定义模态Vue登录组件+ axios的重定向?

但是我如何在200响应后触发axios中的重定向?

目前定制模式的看法并不紧密,但是当我刷新页面,我登录

methods: { 
     login() { 
      axios.post('/login', this.$data) 
       .then(response => console.log(response)); // response.status = 200 
       .catch(error => this.errors.record(error.response.data)); 
     } 

回答

相关问题