Skip to content

Commit 2dec061

Browse files
fix: Fix some display errors (#8031)
1 parent 6b04457 commit 2dec061

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

frontend/src/components/backup/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ const onRecover = async (row: Backup.RecordInfo) => {
306306
isBackup.value = false;
307307
if (type.value !== 'app' && type.value !== 'website') {
308308
ElMessageBox.confirm(
309-
i18n.global.t('commons.msg.backupHelper', [name.value + '( ' + detailName.value + ' )']),
310-
i18n.global.t('commons.button.backup'),
309+
i18n.global.t('commons.msg.recoverHelper', [name.value + '( ' + detailName.value + ' )']),
310+
i18n.global.t('commons.button.recover'),
311311
{
312312
confirmButtonText: i18n.global.t('commons.button.confirm'),
313313
cancelButtonText: i18n.global.t('commons.button.cancel'),

frontend/src/global/form-rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ const checkAppName = (rule: any, value: any, callback: any) => {
306306
if (value === '' || typeof value === 'undefined' || value == null) {
307307
callback(new Error(i18n.global.t('commons.rule.appName')));
308308
} else {
309-
const reg = /^(?![_-])[a-z0-9_-]{1,29}[a-z0-9]$/;
309+
const reg = /^(?![_-])[a-zA-Z0-9_-]{1,29}[a-zA-Z0-9]$/;
310310
if (!reg.test(value) && value !== '') {
311311
callback(new Error(i18n.global.t('commons.rule.appName')));
312312
} else {

frontend/src/views/website/ssl/dns-account/create/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<DialogPro v-model="open" :title="$t('commons.button.create')" @close="handleClose">
2+
<DialogPro v-model="open" :title="$t('commons.button.' + accountData.mode)" @close="handleClose">
33
<el-row>
44
<el-col :span="22" :offset="1">
55
<el-form ref="accountForm" label-position="top" :model="account" :rules="rules">
@@ -131,7 +131,7 @@ interface AccountProps {
131131
form: any;
132132
}
133133
const accountData = ref<AccountProps>({
134-
mode: 'add',
134+
mode: 'create',
135135
form: {},
136136
});
137137

frontend/src/views/website/ssl/dns-account/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const search = () => {
8787
};
8888
8989
const openCreate = () => {
90-
createRef.value.acceptParams({ mode: 'add' });
90+
createRef.value.acceptParams({ mode: 'create' });
9191
};
9292
9393
const openEdit = (form: Website.DnsAccount) => {

frontend/src/views/website/website/create/index.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,6 @@ const acceptParams = async () => {
839839
listAcmeAccount();
840840
841841
open.value = true;
842-
843-
console.log('runtimeID', website.value.runtimeID);
844842
};
845843
846844
const changeAppType = (type: string) => {

0 commit comments

Comments
 (0)