opt:修改国际化,add:增加大屏看板
This commit is contained in:
@@ -50,10 +50,11 @@
|
||||
<span class="el-dropdown-link" style="font-size: 18px">
|
||||
{{ language }} <i class="el-icon-caret-bottom" />
|
||||
</span>
|
||||
<!-- 国际化开发:1.修改语言列表-->
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item divided command="zh">简体中文</el-dropdown-item>
|
||||
<el-dropdown-item divided command="en">English</el-dropdown-item>
|
||||
<el-dropdown-item divided command="in">Indonesian</el-dropdown-item>
|
||||
<el-dropdown-item divided command="iv">Vietnamese</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
@@ -137,13 +138,14 @@ export default {
|
||||
this.setLang(command)
|
||||
location.reload()
|
||||
},
|
||||
// 国际化开发:2.设置
|
||||
setLang(command) {
|
||||
if (command === 'en') {
|
||||
this.language = 'English'
|
||||
} else if (command === 'zh') {
|
||||
this.language = '简体中文'
|
||||
} else if (command === 'in') {
|
||||
this.language = 'Indonesian'
|
||||
} else if (command === 'iv') {
|
||||
this.language = 'Vietnamese'
|
||||
}
|
||||
},
|
||||
toggleSideBar() {
|
||||
|
||||
Reference in New Issue
Block a user