Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
447d37d1
Commit
447d37d1
authored
Mar 21, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
语言切换刷新还原成中文,新增修改语言本地缓存
parent
2fc22c9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
index.vue
src/components/index.vue
+9
-0
No files found.
src/components/index.vue
View file @
447d37d1
...
@@ -1313,6 +1313,14 @@ export default {
...
@@ -1313,6 +1313,14 @@ export default {
created
()
{
created
()
{
//页面刚进入时开启长连接
//页面刚进入时开启长连接
// this.initWebSocket()
// this.initWebSocket()
let
language
=
localStorage
.
language
if
(
!
language
)
{
this
.
language
=
'zh-CN'
;
this
.
$i18n
.
locale
=
'zh-CN'
;
}
else
{
this
.
language
=
language
this
.
$i18n
.
locale
=
language
;
}
//IM_body
//IM_body
let
allWindowWidth
=
window
.
innerWidth
;
let
allWindowWidth
=
window
.
innerWidth
;
this
.
allWindowWidth
=
allWindowWidth
-
50
-
220
-
60
;
this
.
allWindowWidth
=
allWindowWidth
-
50
-
220
-
60
;
...
@@ -1328,6 +1336,7 @@ export default {
...
@@ -1328,6 +1336,7 @@ export default {
ChangeLan
(
str
){
ChangeLan
(
str
){
this
.
language
=
str
;
this
.
language
=
str
;
this
.
$i18n
.
locale
=
str
;
this
.
$i18n
.
locale
=
str
;
localStorage
.
language
=
str
;
},
},
settingSys
:
function
()
{
settingSys
:
function
()
{
this
.
MsgBus
.
$emit
(
'settingOpen'
)
this
.
MsgBus
.
$emit
(
'settingOpen'
)
...
...
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