component
index
router
问题:
点击组件里面的a标签触发路由 this.$root.$router.push()
路由到指定页面 /sche 后瞬间返回 / 这个路径
不清楚是为什么
这是路由钩子 beforeEach 的打印信息 。触发了2次
component
index
router
问题:
点击组件里面的a标签触发路由 this.$root.$router.push()
路由到指定页面 /sche 后瞬间返回 / 这个路径
不清楚是为什么
这是路由钩子 beforeEach 的打印信息 。触发了2次
router-link
? this.$root.$router.push()
不是 this.$router.push()
吗?9 回答1.7k 阅读✓ 已解决
6 回答1k 阅读
3 回答1.4k 阅读✓ 已解决
4 回答985 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
3 回答887 阅读
3 回答1.3k 阅读✓ 已解决
给
a
加上v-on:click.prevent