Commit 2b10b0b1 authored by youjie's avatar youjie

no message

parent a6a50a46
import { RouteRecordRaw } from 'vue-router' import { RouteRecordRaw } from 'vue-router'
const MainLayout = ()=>import('layouts/MainLayout.vue')
const HotelList = ()=>import('pages/hotel/HotelList.vue')
const HotelOrder = ()=>import('pages/hotel/HotelOrder.vue')
const ModifyHotelOrder = ()=>import('pages/hotel/ModifyHotelOrder.vue')
const personal = ()=>import('pages/personal/personal.vue')
const login = ()=>import('pages/auth/login.vue')
const regist = ()=>import('pages/auth/regist.vue')
const forget = ()=>import('pages/auth/forget.vue')
const newpassword = ()=>import('pages/auth/newpassword.vue')
const Error404 = ()=>import('pages/Error404.vue')
const routes: RouteRecordRaw[] = [ const routes: RouteRecordRaw[] = [
{ {
path: '/index', path: '/index',
component: () => import('layouts/MainLayout.vue'), component: () => import('layouts/MainLayout.vue'),
children: [ children: [
{ path: '', component: () => import('pages/Index.vue') }, { path: '', component: MainLayout },
{ path: '/hotel', component: () => import('pages/hotel/HotelList.vue') }, { path: '/hotel', component: HotelList },
{ path: '/hotel/order/:orderId?', component: () => import('pages/hotel/HotelOrder.vue') }, { path: '/hotel/order/:orderId?', component: HotelOrder },
{ path: '/hotel/modify/:orderId', component: () => import('pages/hotel/ModifyHotelOrder.vue') }, { path: '/hotel/modify/:orderId', component: ModifyHotelOrder },
{ path: '/personal', component: () => import('pages/personal/personal.vue')} { path: '/personal', component: personal }
] ]
}, },
{ {
path: '/auth/login', path: '/auth/login',
component: () => import('pages/auth/login.vue') component: login
}, },
{ {
path: '/auth/regist', path: '/auth/regist',
component: () => import('pages/auth/regist.vue') component: regist
}, },
{ {
path: '/auth/forget', path: '/auth/forget',
component: () => import('pages/auth/forget.vue') component: forget
}, },
{ {
path: '/auth/newpassword/:code', path: '/auth/newpassword/:code',
component: () => import('pages/auth/newpassword.vue') component: newpassword
}, },
// Always leave this as last one, // Always leave this as last one,
// but you can also remove it // but you can also remove it
{ {
path: '/:catchAll(.*)*', path: '/:catchAll(.*)*',
component: () => import('pages/Error404.vue') component: Error404
} }
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment