This article will introduce how to create a new routing page in the Vue project. I hope it will be helpful to friends in need!
[Related recommendations: vue.js video tutorial]
The specific steps are as follows:
We now need to create a new test page and name it Test.vue
1: Create a new Test.vue
under components<template> <div>我是测试界面</div> </template> <script> </script> <style> </style>
<template> <div>我是测试界面</div> </template> <script> </script> <style> </style>
2: Open App.vue {name:'/components/Test',navItem:'Test interface'},
3: Open the route and import the component index.js
import Test from '@/components/Test' { path: '/components/Test', name: 'Test', component: Test }
.
The above is the detailed content of Detailed explanation of how to create routing page in Vue project. For more information, please follow other related articles on the PHP Chinese website!