javascript - Why is there no $route attribute in my project built with vue-cli?
PHPz
PHPz 2017-05-19 10:10:33
0
2
554

The code is as follows:
main.js

router.js

Login page (login.vue)

Why is there no $route attribute in this here?
Or where can I see the $route attribute...
There is still something wrong with my routing configuration, the page can jump normally, but this attribute cannot be found

PHPz
PHPz

学习是最好的投资!

reply all(2)
大家讲道理
this.$root.$route
this.$router
迷茫

Try it

console.log(this.$route)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template