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:
parent
6b0445763b
commit
2dec061603
@ -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'),
|
||||
|
@ -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 {
|
||||
|
@ -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: {},
|
||||
});
|
||||
|
||||
|
@ -87,7 +87,7 @@ const search = () => {
|
||||
};
|
||||
|
||||
const openCreate = () => {
|
||||
createRef.value.acceptParams({ mode: 'add' });
|
||||
createRef.value.acceptParams({ mode: 'create' });
|
||||
};
|
||||
|
||||
const openEdit = (form: Website.DnsAccount) => {
|
||||
|
@ -839,8 +839,6 @@ const acceptParams = async () => {
|
||||
listAcmeAccount();
|
||||
|
||||
open.value = true;
|
||||
|
||||
console.log('runtimeID', website.value.runtimeID);
|
||||
};
|
||||
|
||||
const changeAppType = (type: string) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user