Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
ac2253e5
Commit
ac2253e5
authored
Jun 29, 2019
by
zhengjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置文件中加入底部信息配置
parent
9ca7d4b0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
9 deletions
+69
-9
src/config/index.js
+16
-1
src/layout/components/AppMain.vue
+15
-7
src/store/modules/settings.js
+4
-1
src/styles/index.scss
+29
-0
src/views/login.vue
+5
-0
No files found.
src/config/index.js
View file @
ac2253e5
...
...
@@ -46,5 +46,20 @@ export default {
/**
* 是否显示设置的悬浮按钮
*/
settingBtn
:
true
settingBtn
:
true
,
/**
* 是否显示设置的底部信息
*/
showFooter
:
true
,
/**
* 底部文字,支持html语法
*/
footerTxt
:
'© 2019 Zheng Jie <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License 2.0</a>'
,
/**
* 备案号
*/
caseNumber
:
'浙ICP备18005431号-3'
}
src/layout/components/AppMain.vue
View file @
ac2253e5
<
template
>
<section
class=
"app-main"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<keep-alive
:include=
"cachedViews"
>
<router-view
:key=
"key"
/>
</keep-alive>
</transition>
</section>
<div>
<section
class=
"app-main"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<keep-alive
:include=
"cachedViews"
>
<router-view
:key=
"key"
/>
</keep-alive>
</transition>
</section>
<div
v-if=
"$store.state.settings.showFooter"
id=
"el-main-footer"
>
<span
v-html=
"$store.state.settings.footerTxt"
/>
<span>
⋅
</span>
<a
href=
"http://www.beian.miit.gov.cn"
target=
"_blank"
>
{{
$store
.
state
.
settings
.
caseNumber
}}
</a>
</div>
</div>
</
template
>
<
script
>
...
...
@@ -29,6 +36,7 @@ export default {
min-height
:
calc
(
100vh
-
84px
);
width
:
100%
;
position
:
relative
;
padding-bottom
:
18px
;
overflow
:
hidden
;
}
...
...
src/store/modules/settings.js
View file @
ac2253e5
...
...
@@ -9,7 +9,10 @@ const settings = {
sidebarLogo
:
Config
.
sidebarLogo
,
theme
:
variables
.
theme
,
settingBtn
:
Config
.
settingBtn
,
uniqueOpened
:
Config
.
uniqueOpened
uniqueOpened
:
Config
.
uniqueOpened
,
showFooter
:
Config
.
showFooter
,
footerTxt
:
Config
.
footerTxt
,
caseNumber
:
Config
.
caseNumber
},
mutations
:
{
CHANGE_SETTING
:
(
state
,
{
key
,
value
})
=>
{
...
...
src/styles/index.scss
View file @
ac2253e5
...
...
@@ -135,3 +135,32 @@ a:hover {
//margin: 0 auto;
}
}
#el-login-footer
{
height
:
40px
;
line-height
:
40px
;
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
text-align
:
center
;
color
:
#fff
;
font-family
:
Arial
;
font-size
:
12px
;
letter-spacing
:
1px
;
}
#el-main-footer
{
background
:
none
repeat
scroll
0
0
white
;
border-top
:
1px
solid
#e7eaec
;
overflow
:
hidden
;
padding
:
10px
6px
0px
6px
;
height
:
33px
;
font-size
:
0
.5rem
!
important
;
color
:
#7a8b9a
;
letter-spacing
:
0
.8px
;
font-family
:
Arial
,
sans-serif
!
important
;
position
:
fixed
;
bottom
:
0
;
z-index
:
99
;
width
:
100%
;
}
src/views/login.vue
View file @
ac2253e5
...
...
@@ -28,6 +28,11 @@
</el-button>
</el-form-item>
</el-form>
<div
v-if=
"$store.state.settings.showFooter"
id=
"el-login-footer"
>
<span
v-html=
"$store.state.settings.footerTxt"
/>
<span>
⋅
</span>
<a
href=
"http://www.beian.miit.gov.cn"
target=
"_blank"
>
{{
$store
.
state
.
settings
.
caseNumber
}}
</a>
</div>
</div>
</
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