From 5880810a20d52b211cd3ca92bef70d3fac42cf69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B6=E6=99=B6=20=E5=BC=A0?= Date: Fri, 23 Jul 2021 16:00:15 +0800 Subject: [PATCH] =?UTF-8?q?CN-77=20feat=EF=BC=9Ai18n=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=20lang=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=80=9A=E8=BF=87=E6=8E=A5=E5=8F=A3=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/rightBox/settings/I18nBox.vue | 51 +++++--------------- 1 file changed, 13 insertions(+), 38 deletions(-) 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 @@ - - - + + - - - @@ -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 }