From 26dd672522cc42984702edfb7fc691edc1152e7b Mon Sep 17 00:00:00 2001 From: ssongliu Date: Sat, 11 Mar 2023 17:53:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E6=AD=A3=E6=95=B4?= =?UTF-8?q?=E6=95=B0=E6=AD=A3=E5=88=99=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 3 ++- frontend/src/lang/modules/zh.ts | 3 ++- frontend/src/views/setting/monitor/index.vue | 2 +- frontend/src/views/setting/panel/index.vue | 5 ++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 2fac4cac5..e485b34a7 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -131,12 +131,13 @@ export default { simpleName: 'Support English, numbers and _ length 1-30', dbName: 'Support English, Chinese, numbers, .-, and _ length 1-16', imageName: 'Support English, numbers, :/.-_, length 1-150', - volumeName: 'Support English, numbers, .-_, length 1-30', + volumeName: 'Support English, numbers, .-_, length 2-30', complexityPassword: 'Enter a password that is longer than eight characters and contains at least two letters, digits, and special characters', commonPassword: 'Please enter a password with more than 6 characters', email: 'Email format error', number: 'Please enter the correct number', + integer: 'Please enter the correct positive integer', ip: 'Please enter the correct IP address', port: 'Please enter the correct port', selectHelper: 'Please select the correct {0} file', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 9137d8d7f..4695f8c63 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -135,12 +135,13 @@ export default { simpleName: '支持英文、数字、_,长度1-30', dbName: '支持英文、中文、数字、.-_,长度1-16', imageName: '支持英文、数字、:/.-_,长度1-150', - volumeName: '支持英文、数字、.-和_,长度1-30', + volumeName: '支持英文、数字、.-和_,长度2-30', complexityPassword: '请输入长度大于 8 位且包含字母、数字、特殊字符至少两项的密码组合', commonPassword: '请输入 6 位以上长度密码', linuxName: '长度1-30,名称不能含有{0}等符号', email: '请输入正确的邮箱', number: '请输入正确的数字', + integer: '请输入正确的正整数', ip: '请输入正确的 IP 地址', port: '请输入正确的端口,1-65535', selectHelper: '请选择正确的 {0} 文件', diff --git a/frontend/src/views/setting/monitor/index.vue b/frontend/src/views/setting/monitor/index.vue index b8228cf90..d01d82236 100644 --- a/frontend/src/views/setting/monitor/index.vue +++ b/frontend/src/views/setting/monitor/index.vue @@ -20,7 +20,7 @@ diff --git a/frontend/src/views/setting/panel/index.vue b/frontend/src/views/setting/panel/index.vue index 17e8164fd..4d4fa49c8 100644 --- a/frontend/src/views/setting/panel/index.vue +++ b/frontend/src/views/setting/panel/index.vue @@ -73,7 +73,7 @@ @@ -254,6 +254,9 @@ const onSave = async (formEl: FormInstance | undefined, key: string, val: any) = globalStore.setLogStatus(false); return; } + if (param.key === 'Language') { + location.reload(); + } loading.value = false; MsgSuccess(i18n.t('commons.msg.operationSuccess')); search();