NEZ-1157 feat: 国际化内容改为后端控制

This commit is contained in:
chenjinsong
2021-11-02 18:34:01 +08:00
parent 3094e94b0c
commit 17bdd7aba3
7 changed files with 90 additions and 28 deletions

View File

@@ -37,8 +37,8 @@
placeholder=""
popper-class="right-box-select-top prevent-clickoutside"
size="small">
<template v-for="item in languageList">
<el-option :key="item.value" :label="item.label" :value="item.value"></el-option>
<template v-for="item in langList">
<el-option :key="item.value" :label="item.name" :value="item.value"></el-option>
</template>
</el-select>
</el-form-item>
@@ -71,17 +71,17 @@ export default {
type: Object
}
},
computed: {},
computed: {
langList () {
return this.$store.getters.getLangList
}
},
mixins: [editRigthBox],
data () {
return {
url: 'sys/user/profile',
rightBox: { profile: { show: false } },
editProfile: {},
languageList: [
{ value: 'en', label: 'English' },
{ value: 'cn', label: '简体中文' }
],
rules: {
name: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }