# 一般路由Vue Router知識點 1. 一般routes ```` const routes = [ { path: '/', name: '', component: () => import('../views/FrontLayout.vue'), } ```` 2. 巢狀路由routes **mind: children裡面的/要拿掉 ```` const routes = [ { path: '/', name: '', component: () => import('../views/FrontLayout.vue'), children: [{ path: '', name: 'Home', component: () => import('../views/front/HomeView.vue') }, { path: 'about', name: 'About', component: () => import('../views/front/AboutView.vue') }] } ````
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up