Commit ebc4fd41 authored by dragondean@qq.com's avatar dragondean@qq.com

角色管理之菜单权限国际化异常

parent e1b3263e
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
<el-form-item :label="$t('菜单权限')"> <el-form-item :label="$t('菜单权限')">
<el-checkbox v-model="menuExpand" @change="handleCheckedTreeExpand($event, 'menu')">{{$t('展开')}}/{{$t('折叠')}}</el-checkbox> <el-checkbox v-model="menuExpand" @change="handleCheckedTreeExpand($event, 'menu')">{{$t('展开')}}/{{$t('折叠')}}</el-checkbox>
<el-checkbox v-model="menuNodeAll" @change="handleCheckedTreeNodeAll($event, 'menu')">{{$t('全选')}}/{{$t('全不选')}}</el-checkbox> <el-checkbox v-model="menuNodeAll" @change="handleCheckedTreeNodeAll($event, 'menu')">{{$t('全选')}}/{{$t('全不选')}}</el-checkbox>
<el-tree class="tree-border" :data="menuOptions" show-checkbox ref="menu" node-key="id" <el-tree v-if="openMenu" class="tree-border" :data="menuOptions" show-checkbox ref="menu" node-key="id"
:check-strictly="true" :empty-text="$t('加载中,请稍后')" :props="defaultProps"></el-tree> :check-strictly="true" :empty-text="$t('加载中,请稍后')" :props="defaultProps"></el-tree>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -251,7 +251,7 @@ export default { ...@@ -251,7 +251,7 @@ export default {
computed:{ computed:{
defaultProps(){ defaultProps(){
return { return {
label: this.$t("name"), label: this.$i18n.locale.indexOf('en') > -1 ? 'nameEn' : 'name',
children: "children" children: "children"
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment