diff --git a/src/components/rightBox/settings/I18nBox.vue b/src/components/rightBox/settings/I18nBox.vue
index 83853f7e..239960bb 100644
--- a/src/components/rightBox/settings/I18nBox.vue
+++ b/src/components/rightBox/settings/I18nBox.vue
@@ -21,34 +21,25 @@
-
-
-
+ { this.$forceUpdate() }">
+
+
+
-
-
-
@@ -70,23 +61,7 @@ export default {
name: 'I18nBox',
mixins: [rightBoxMixin],
data () {
- const validatePin = (rule, value, callback) => { // 确认密码的二次校验
- if (value === '' && this.editObject.pin) {
- callback(new Error(this.$t('config.user.inputConfirmPin')))
- } else if (value !== this.editObject.pin) {
- callback(new Error(this.$t('config.user.confirmPinErr')))
- } else {
- callback()
- }
- }
return {
- options: [{
- value: 'en',
- label: 'en'
- }, {
- value: 'zh',
- label: 'zh'
- }],
url: 'sys/i18n',
loginName: localStorage.getItem('cn-username'),
rules: { // 表单校验规则
@@ -155,7 +130,7 @@ export default {
})
},
getRoleData () {
- get('sys/i18n?pageSize=-1').then(response => {
+ get('sys/dict?pageSize=-1').then(response => {
if (response.code === 200) {
this.roleData = response.data.list
}