From 2dec0616038507beb9ce5f77f415fbbb01512c9b Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 27 Feb 2025 22:44:55 +0800 Subject: [PATCH] fix: Fix some display errors (#8031) --- frontend/src/components/backup/index.vue | 4 ++-- frontend/src/global/form-rules.ts | 2 +- frontend/src/views/website/ssl/dns-account/create/index.vue | 4 ++-- frontend/src/views/website/ssl/dns-account/index.vue | 2 +- frontend/src/views/website/website/create/index.vue | 2 -- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/backup/index.vue b/frontend/src/components/backup/index.vue index 1f5fc0592..c8fcb3ef1 100644 --- a/frontend/src/components/backup/index.vue +++ b/frontend/src/components/backup/index.vue @@ -306,8 +306,8 @@ const onRecover = async (row: Backup.RecordInfo) => { isBackup.value = false; if (type.value !== 'app' && type.value !== 'website') { ElMessageBox.confirm( - i18n.global.t('commons.msg.backupHelper', [name.value + '( ' + detailName.value + ' )']), - i18n.global.t('commons.button.backup'), + i18n.global.t('commons.msg.recoverHelper', [name.value + '( ' + detailName.value + ' )']), + i18n.global.t('commons.button.recover'), { confirmButtonText: i18n.global.t('commons.button.confirm'), cancelButtonText: i18n.global.t('commons.button.cancel'), diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts index 5e7f8693c..9ca99533c 100644 --- a/frontend/src/global/form-rules.ts +++ b/frontend/src/global/form-rules.ts @@ -306,7 +306,7 @@ const checkAppName = (rule: any, value: any, callback: any) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(new Error(i18n.global.t('commons.rule.appName'))); } else { - const reg = /^(?![_-])[a-z0-9_-]{1,29}[a-z0-9]$/; + const reg = /^(?![_-])[a-zA-Z0-9_-]{1,29}[a-zA-Z0-9]$/; if (!reg.test(value) && value !== '') { callback(new Error(i18n.global.t('commons.rule.appName'))); } else { diff --git a/frontend/src/views/website/ssl/dns-account/create/index.vue b/frontend/src/views/website/ssl/dns-account/create/index.vue index e71e42bbc..b5dee4379 100644 --- a/frontend/src/views/website/ssl/dns-account/create/index.vue +++ b/frontend/src/views/website/ssl/dns-account/create/index.vue @@ -1,5 +1,5 @@