Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
bigwood
Commits
2b10b0b1
Commit
2b10b0b1
authored
Nov 28, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a6a50a46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
routes.ts
src/router/routes.ts
+20
-11
No files found.
src/router/routes.ts
View file @
2b10b0b1
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
[]
=
[
{
path
:
'/index'
,
component
:
()
=>
import
(
'layouts/MainLayout.vue'
),
children
:
[
{
path
:
''
,
component
:
()
=>
import
(
'pages/Index.vue'
)
},
{
path
:
'/hotel'
,
component
:
()
=>
import
(
'pages/hotel/HotelList.vue'
)
},
{
path
:
'/hotel/order/:orderId?'
,
component
:
()
=>
import
(
'pages/hotel/HotelOrder.vue'
)
},
{
path
:
'/hotel/modify/:orderId'
,
component
:
()
=>
import
(
'pages/hotel/ModifyHotelOrder.vue'
)
},
{
path
:
'/personal'
,
component
:
()
=>
import
(
'pages/personal/personal.vue'
)
}
{
path
:
''
,
component
:
MainLayout
},
{
path
:
'/hotel'
,
component
:
HotelList
},
{
path
:
'/hotel/order/:orderId?'
,
component
:
HotelOrder
},
{
path
:
'/hotel/modify/:orderId'
,
component
:
ModifyHotelOrder
},
{
path
:
'/personal'
,
component
:
personal
}
]
},
{
path
:
'/auth/login'
,
component
:
()
=>
import
(
'pages/auth/login.vue'
)
component
:
login
},
{
path
:
'/auth/regist'
,
component
:
()
=>
import
(
'pages/auth/regist.vue'
)
component
:
regist
},
{
path
:
'/auth/forget'
,
component
:
()
=>
import
(
'pages/auth/forget.vue'
)
component
:
forget
},
{
path
:
'/auth/newpassword/:code'
,
component
:
()
=>
import
(
'pages/auth/newpassword.vue'
)
component
:
newpassword
},
// Always leave this as last one,
// but you can also remove it
{
path
:
'/:catchAll(.*)*'
,
component
:
()
=>
import
(
'pages/Error404.vue'
)
component
:
Error404
}
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment