javascript - How to add a new page after vue-cli is built
黄舟2017-05-16 13:43:56
0
2
543
I just built the structure of vue-cli
This page has come out. If I want to continue to add several components, how should I edit it? I have no idea. I’m not very familiar with router yet, please give me some advice
Use vue-router to configure routing and inject it in the vue root instance
That’s about it. Use <router-link to="/play"></router-link> for the link.
It is recommended to learn from the documentation
http://router.vuejs.org/zh-cn...
Reference documentation. .
Configure routing