perf: 增加语言切换功能

This commit is contained in:
wangruidong
2023-10-25 15:10:36 +08:00
committed by Bryan
parent 51717f8583
commit 3934c17f52
2 changed files with 10 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<template>
<el-dropdown>
<span class="el-dropdown-link">
<span class="el-dropdown-link header-lang">
{{ currentLang.title }}<i class="el-icon-arrow-down el-icon--right" />
</span>
<el-dropdown-menu slot="dropdown">
@@ -51,7 +51,6 @@ export default {
}
},
mounted() {
this.changeLang()
this.changeMomentLang()
},
methods: {
@@ -92,5 +91,7 @@ export default {
</script>
<style scoped>
.header-lang {
color: white;
}
</style>

View File

@@ -24,6 +24,9 @@
<li class="header-item active-menu">
<Help />
</li>
<li class="header-item">
<Language />
</li>
<li class="header-item header-profile">
<AccountDropdown />
</li>
@@ -53,7 +56,7 @@ import Tickets from './Tickets'
import Organization from './Organization'
import SystemSetting from './SystemSetting'
import Logo from '../NavLeft/Logo'
import Language from './Language'
export default {
components: {
Hamburger,
@@ -64,7 +67,8 @@ export default {
WebTerminal,
SiteMessages,
SystemSetting,
Logo
Logo,
Language
},
data() {
return {}