Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
JuyuanPrimarySchool
Overview
Overview
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
vue-project
JuyuanPrimarySchool
Commits
d1955fd5
Commit
d1955fd5
authored
Nov 22, 2021
by
zsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加返回首页
parent
c49632eb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
PageBack.vue
src/components/PageBack.vue
+27
-0
progress.vue
src/pages/progress.vue
+1
-0
index.js
src/public/plugins/index.js
+4
-0
No files found.
src/components/PageBack.vue
0 → 100644
View file @
d1955fd5
<
template
>
<div
class=
"page-back"
@
click=
"returnHomePage"
></div>
</
template
>
<
script
>
export
default
{
name
:
'PageBack'
,
methods
:
{
returnHomePage
()
{
this
.
$router
.
push
(
'/situation'
)
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.page-back
{
position
:
absolute
;
top
:
37px
;
left
:
15px
;
width
:
380px
;
height
:
45px
;
z-index
:
2
;
cursor
:
pointer
;
}
</
style
>
src/pages/progress.vue
View file @
d1955fd5
<
template
>
<div
class=
"progress"
>
<page-back
/>
<tab
/>
<!-- 搜索 -->
...
...
src/public/plugins/index.js
View file @
d1955fd5
...
...
@@ -6,6 +6,8 @@ import ContentContainer from 'components/ContentContainer'
import
Header
from
'components/Header'
// 弹框
import
BulletFrame
from
'components/BulletFrame'
// 返回首页
import
PageBack
from
'components/PageBack'
const
UsePlugin
=
{}
...
...
@@ -23,6 +25,8 @@ UsePlugin.install = function (Vue, options = {}) {
Vue
.
component
(
'page-header'
,
Header
)
// 弹框
Vue
.
component
(
'bullet-frame'
,
BulletFrame
)
// 返回首页
Vue
.
component
(
'page-back'
,
PageBack
)
}
export
default
UsePlugin
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