0👍
So after more deep search I made up a solution without routing from controller. I made a direct route from component using promise to get response from controller.
// Login.vue
return auth.doLogin(this).then(success => {
this.$router.push(success)
});
// auth.js
doLogin(context, credentials, redirect) {
return new Promise((resolve, reject) => {
axios.post('/post/doAuth', context.login, this.postHeadersJson).then(response => {
...
resolve(...);
}).catch(e => {
reject(...)
});
});
}
- [Vuejs]-How to capture selectionStart and selectionEnd in Safari for ios?
- [Vuejs]-Can't set tooltip and legend dynamically in Highchart with Vue.js
Source:stackexchange.com