I
I
Igor2019-09-29 19:33:47
Vue.js
Igor, 2019-09-29 19:33:47

Vue router go(-1)?

Colleagues, good evening!
Navigation problem.
I'm navigating through routes, but when I need to rewind $router.go(-1) only goes back one unit.
Timeline doesn't work.
What am I doing wrong?

<v-btn
          v-if="$route.path !== '/'"
          icon
          @click.once="$router.go(-1)"
        ><v-icon>mdi-arrow-left</v-icon>
        </v-btn>

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