Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
de9d4d19
authored
2020-03-23 14:36:56 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
f6af6369
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
src/App.vue
src/components/home/dropdown/dropdown.js
src/App.vue
View file @
de9d4d1
<
template
>
<div
id=
"app"
:lang=
"lang"
>
<v-header
class=
"header"
></v-header>
<main
ref=
"container"
class=
"main-container"
>
<main
ref=
"container"
class=
"main-container"
:class=
"
{'main-container-min-height':!initCss}"
>
<router-view
/>
</main>
<v-footer></v-footer>
...
...
@@ -32,7 +32,8 @@ export default {
},
data
()
{
return
{
lang
:
"zh"
lang
:
"zh"
,
initCss
:
false
};
},
computed
:
{
...
...
@@ -76,6 +77,10 @@ export default {
this
.
refreshUA
();
//
this
.
refreshProfile
();
setTimeout
(()
=>
{
this
.
initCss
=
true
;
},
2000
);
}
};
</
script
>
...
...
@@ -355,6 +360,10 @@ textarea {
}
}
.main-container-min-height
{
min-height
:
600px
;
}
.content
{
max-width
:
1200px
;
width
:
100%
;
...
...
src/components/home/dropdown/dropdown.js
View file @
de9d4d1
...
...
@@ -80,10 +80,12 @@ export default {
if
(
this
.
type
==
"lang"
)
{
// 如果是语言设置,则设置语言
let
lang
=
curData
.
value
;
this
.
$i18n
.
locale
=
lang
;
if
(
lang
!=
localStorage
.
getItem
(
'lang'
))
{
// this.$i18n.locale = lang;
// this.sTitle = curData.name;
localStorage
.
setItem
(
"lang"
,
lang
);
this
.
sTitle
=
curData
.
name
;
window
.
location
.
reload
();
}
}
else
{
// if (curData.value == "logout") {
// this.loginHandler();
...
...
Please
register
or
sign in
to post a comment