1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-01 03:24:14 +08:00

fix: Fix some display errors (#8031)

This commit is contained in:
zhengkunwang 2025-02-27 22:44:55 +08:00 committed by GitHub
parent 6b0445763b
commit 2dec061603
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 8 deletions

View File

@ -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'),

View File

@ -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 {

View File

@ -1,5 +1,5 @@
<template>
<DialogPro v-model="open" :title="$t('commons.button.create')" @close="handleClose">
<DialogPro v-model="open" :title="$t('commons.button.' + accountData.mode)" @close="handleClose">
<el-row>
<el-col :span="22" :offset="1">
<el-form ref="accountForm" label-position="top" :model="account" :rules="rules">
@ -131,7 +131,7 @@ interface AccountProps {
form: any;
}
const accountData = ref<AccountProps>({
mode: 'add',
mode: 'create',
form: {},
});

View File

@ -87,7 +87,7 @@ const search = () => {
};
const openCreate = () => {
createRef.value.acceptParams({ mode: 'add' });
createRef.value.acceptParams({ mode: 'create' });
};
const openEdit = (form: Website.DnsAccount) => {

View File

@ -839,8 +839,6 @@ const acceptParams = async () => {
listAcmeAccount();
open.value = true;
console.log('runtimeID', website.value.runtimeID);
};
const changeAppType = (type: string) => {