Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
breast-feeding-ai-demo-web
Project
Project
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
朱国瑞
breast-feeding-ai-demo-web
Commits
03993290
Commit
03993290
authored
May 19, 2022
by
朱国瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
语言不对的问题
parent
ed40b35e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
index.vue
src/views/index.vue
+10
-1
No files found.
src/views/index.vue
View file @
03993290
...
...
@@ -104,6 +104,15 @@ export default {
this
.
showPopup
=
!
this
.
showPopup
;
},
setLanguagePack
()
{
let
lang
=
"en"
;
if
(
this
.
currentLanguage
===
0
)
{
lang
=
"en"
;
}
else
if
(
this
.
currentLanguage
===
1
)
{
lang
=
"fr"
;
}
else
if
(
this
.
currentLanguage
===
2
)
{
lang
=
"es"
;
}
localStorage
.
setItem
(
"lang"
,
lang
);
let
_languagePack
=
{
tipsString
:
{
initInitial
:
"请调整姿势"
,
...
...
@@ -617,8 +626,8 @@ export default {
}
else
if
(
index
===
2
)
{
lang
=
"es"
;
}
localStorage
.
setItem
(
"lang"
,
lang
);
this
.
$i18n
.
locale
=
lang
;
localStorage
.
setItem
(
"lang"
,
lang
);
},
async
clickAuthCamera
()
{
this
.
setLanguagePack
();
...
...
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