I saw several Stackoverflow questions about this but I still couldn't solve my problem about switching pages.
I import the second Vue page. Then I call this.$navigateTo() on the page I imported. I don't get any errors after executing the method. Nothing happens! The method gets executed but the page doesn't change. The path to the second page is valid.
import SecondPage from './SecondPage';
export default {
methods: {
run(){
console.log('test')
this.$navigateTo(SecondPage)
}
}
}
this is the way I call the method:
<Button text="Check" @tap="run()" />