2
如何導航到Framework7中的路線& VueJs app。如何導航到Framework7 + Vue應用程序中的路線?
我想顯示一個slpash屏幕並在兩秒後導航到下一頁。代碼粘貼在下面。
<template>
...
</template>
<script>
export default {
name: "splash",
mounted: function() {
this.$router.load({url: '/about/'}); // error
},
data: function() {
return {
msg : "hello"
}
}
}
</script>
注:這是應用程序組件(Main.vue)。
試試這個。$ router.replace('/ about')' –
@VamsiKrishna $ router是未定義的。 –
請參閱最後一節**路由器API **此處(http://framework7.io/vue/navigation-router.html),這可能是問題 –