Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Starter Web Vue
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
product
kim3-web-vue
Starter Web Vue
Commits
93eef44d
Commit
93eef44d
authored
Jul 02, 2021
by
水落(YangLei)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化国际化异常的问题
parent
e7671869
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/pages/frame/components/header/LayoutTopHeaderLang.vue
src/pages/frame/components/header/LayoutTopHeaderLang.vue
+4
-5
No files found.
src/pages/frame/components/header/LayoutTopHeaderLang.vue
View file @
93eef44d
<
template
>
<a-dropdown
class=
"lang header-item"
>
<div><a-icon
type=
"global"
/>
{{
langAlias
}}
</div>
<a-menu
@
click=
"change
Lang
"
:selected-keys=
"[lang]"
slot=
"overlay"
>
<a-menu
@
click=
"change"
:selected-keys=
"[lang]"
slot=
"overlay"
>
<a-menu-item
v-for=
"lang in langList"
:key=
"lang.key"
>
{{
lang
.
key
.
toLowerCase
()
+
'
'
+
lang
.
name
}}
</a-menu-item>
...
...
@@ -27,10 +27,9 @@ export default {
},
},
methods
:
{
change
(
langKey
)
{
this
.
$i18n
.
locale
=
langKey
;
this
.
lang
=
langKey
;
langUtils
.
set
(
langKey
);
change
({
key
})
{
langUtils
.
set
(
key
);
window
.
location
.
reload
();
},
},
};
...
...
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