Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-ssr
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
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
lixy
vue-ssr
Commits
6778967c
Commit
6778967c
authored
Dec 26, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
40页面设置
parent
63a0f051
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
error.vue
layouts/error.vue
+12
-12
No files found.
layouts/error.vue
View file @
6778967c
...
@@ -8,24 +8,24 @@
...
@@ -8,24 +8,24 @@
</div>
</div>
<div
style=
"margin-top: 80px;"
>
<div
style=
"margin-top: 80px;"
>
<span
style=
"font-size: 16px;color: #666;"
>
暂时无法打开页面,您可选择返回
</span>
<span
style=
"font-size: 16px;color: #666;"
>
暂时无法打开页面,您可选择返回
</span>
<
nuxt-link
:to=
"router"
>
<
!--
<nuxt-link
:to=
"router"
>
--
>
<span
class=
"to-home"
>
点击跳转到首页
</span>
<span
class=
"to-home"
@
click=
"links"
style=
"cursor: pointer"
>
点击跳转到首页
</span>
<
/nuxt-link
>
<
!--
</nuxt-link>
--
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
created
()
{
methods
:
{
let
router
=
this
.
$route
.
path
links
(){
this
.
router
=
router
==
'/'
?
'#top'
:
'/'
if
(
this
.
$route
.
path
==
"/"
)
{
},
location
.
reload
()
data
()
{
}
else
{
return
{
this
.
$router
.
push
({
path
:
'/'
})
router
:
'/'
}
}
}
},
},
props
:
[
'error'
],
props
:
[
'error'
],
layout
:
'blog'
// 你可以为错误页面指定自定义的布局
layout
:
'blog'
// 你可以为错误页面指定自定义的布局
}
}
...
...
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