C
C
Comnox2021-08-18 09:52:16
Vue.js
Comnox, 2021-08-18 09:52:16

[vue-router] Go to next page from beforeRouteLeave hook?

hello, can someone please tell me how to go to the next page or get its name parameter, previously used the beforeRouteLeave hook to check:

beforeRouteLeave(to, from, next) {
    if (корректный name страницы) {
    next();
    } else {
    next(false);
    }
  },


I now display a modal window with the "ok" and "cancel" buttons, and when you click on "ok", you should go to the next page, but I can't find a way to go to the next page or find its name to use in the new

screenshot method for example:
611cadc134e6d382883078.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question