Commit d3ef4b59 authored by youjie's avatar youjie

no message

parent c7670efb
import { RouteRecordRaw } from 'vue-router' import { RouteRecordRaw } from 'vue-router'
const MainLayout = ()=>import('layouts/MainLayout.vue') const MainLayout = ()=>import('layouts/MainLayout.vue')
const Index = ()=>import('pages/Index.vue')
const HotelList = ()=>import('pages/hotel/HotelList.vue') const HotelList = ()=>import('pages/hotel/HotelList.vue')
const HotelOrder = ()=>import('pages/hotel/HotelOrder.vue') const HotelOrder = ()=>import('pages/hotel/HotelOrder.vue')
const ModifyHotelOrder = ()=>import('pages/hotel/ModifyHotelOrder.vue') const ModifyHotelOrder = ()=>import('pages/hotel/ModifyHotelOrder.vue')
...@@ -12,9 +13,9 @@ const Error404 = ()=>import('pages/Error404.vue') ...@@ -12,9 +13,9 @@ const Error404 = ()=>import('pages/Error404.vue')
const routes: RouteRecordRaw[] = [ const routes: RouteRecordRaw[] = [
{ {
path: '/index', path: '/index',
component: () => import('layouts/MainLayout.vue'), component: MainLayout,
children: [ children: [
{ path: '', component: MainLayout }, { path: '', component: Index },
{ path: '/hotel', component: HotelList }, { path: '/hotel', component: HotelList },
{ path: '/hotel/order/:orderId?', component: HotelOrder }, { path: '/hotel/order/:orderId?', component: HotelOrder },
{ path: '/hotel/modify/:orderId', component: ModifyHotelOrder }, { path: '/hotel/modify/:orderId', component: ModifyHotelOrder },
......
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