Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
poc
poc-fe
Commits
30fd8c21
Commit
30fd8c21
authored
Sep 12, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 异常页面支持返回首页
parent
ef19e52c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
404.vue
src/views/exception/404.vue
+6
-1
500.vue
src/views/exception/500.vue
+6
-1
No files found.
src/views/exception/404.vue
View file @
30fd8c21
<
script
setup
lang=
"ts"
>
function
toHomePage
()
{}
import
{
useRouter
}
from
'vue-router'
const
router
=
useRouter
()
function
toHomePage
()
{
router
.
replace
({
name
:
'Home'
})
}
</
script
>
<
template
>
...
...
src/views/exception/500.vue
View file @
30fd8c21
<
script
setup
lang=
"ts"
>
function
toHomePage
()
{}
import
{
useRouter
}
from
'vue-router'
const
router
=
useRouter
()
function
toHomePage
()
{
router
.
replace
({
name
:
'Home'
})
}
</
script
>
<
template
>
...
...
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