alex-oleshkevich / vue-introjs

intro.js bindings for Vue.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug report: Auto start fails on second use

gabriel4649 opened this issue · comments

I start one tour on the first landing page after login. Then after that tour is over, I send the user to another page using vue-router. The tour on that second page is not started using auto start. However, if I do a refresh on that second page, the auto-tour starts as expected.

this is a correct behavior.

if your v-intro-autostart is global (i.e. is in parent component of router-view), then it autostarts only once (because it's mounted only once). you need to refresh your autostart boolean model or call this.$intro().start() manually in your case.

or refactor your code so v-intro-autostart is in router-view component. then it will be mounted every time the router changes page and autostart will trigger as if page refreshed.

Thanks! I will attempt to put v-intro-autostart in the router-view and make that work