Skip to content

Commit 65a4d4b

Browse files
author
Lison
authored
Merge pull request #1018 from iview/2.0
如果没有开启多语言,不显示切换语言下拉菜单
2 parents 0425a69 + a72c89a commit 65a4d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/main/main.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<Header class="header-con">
1414
<header-bar :collapsed="collapsed" @on-coll-change="handleCollapsedChange">
1515
<user :user-avator="userAvator"/>
16-
<language @on-lang-change="setLocal" style="margin-right: 10px;" :lang="local"/>
16+
<language v-if="$config.useI18n" @on-lang-change="setLocal" style="margin-right: 10px;" :lang="local"/>
1717
<fullscreen v-model="isFullscreen" style="margin-right: 10px;"/>
1818
</header-bar>
1919
</Header>

0 commit comments

Comments
 (0)