重构前端:拆分路由模块
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
|
||||
export const publicRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: () => import('@/views/public/HomeView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/listings',
|
||||
name: 'listings',
|
||||
component: () => import('@/views/public/ListingsView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/listings/:id',
|
||||
name: 'listing-detail',
|
||||
component: () => import('@/views/public/ListingDetailView.vue'),
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user