mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-12 09:40:10 +08:00
【修复】雷池参数问题,Let's Encrypt 申请通配符限制,以及其他已知问题
This commit is contained in:
@@ -325,13 +325,17 @@ export const useApiFormController = (props: { data: AccessItem }) => {
|
||||
cloudflare: $t('t_0_1747042966820'),
|
||||
btpanel: $t('t_1_1747042969705'),
|
||||
btwaf: $t('t_1_1747300384579'),
|
||||
safeline: $t('t_2_1747300385222'),
|
||||
}
|
||||
return callback(new Error(mapTips[param.value.type as keyof typeof mapTips]))
|
||||
}
|
||||
callback()
|
||||
},
|
||||
},
|
||||
api_token: {
|
||||
required: true,
|
||||
message: $t('t_0_1747617113090'),
|
||||
trigger: 'input',
|
||||
},
|
||||
access_key_id: {
|
||||
required: true,
|
||||
message: $t('t_4_1745317314054'),
|
||||
@@ -467,9 +471,13 @@ export const useApiFormController = (props: { data: AccessItem }) => {
|
||||
useFormInput(typeUrlMap.get(param.value.type) || '', 'config.url', {
|
||||
onInput: (val: string) => ((param.value.config as PanelAccessConfig).url = val.trim()),
|
||||
}),
|
||||
useFormInput($t('t_55_1745289355715'), 'config.api_key', {
|
||||
onInput: (val: string) => ((param.value.config as PanelAccessConfig).api_key = val.trim()),
|
||||
}),
|
||||
useFormInput(
|
||||
param.value.type === 'safeline' ? $t('t_1_1747617105179') : $t('t_55_1745289355715'),
|
||||
param.value.type === 'safeline' ? 'config.api_token' : 'config.api_key',
|
||||
{
|
||||
onInput: (val: string) => ((param.value.config as PanelAccessConfig).api_key = val.trim()),
|
||||
},
|
||||
),
|
||||
useFormSwitch(
|
||||
$t('t_3_1746667592270'),
|
||||
'config.ignore_ssl',
|
||||
|
||||
@@ -32,12 +32,6 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
// 组件挂载时自动获取日志
|
||||
onMounted(() => {
|
||||
fetchLogs()
|
||||
console.log('mounted')
|
||||
})
|
||||
|
||||
return () => (
|
||||
<LogViewer
|
||||
title={`工作流执行日志 (ID: ${props.id})`}
|
||||
|
||||
@@ -93,9 +93,7 @@ export default defineComponent({
|
||||
</div>
|
||||
<div class="flex mb-[1rem] leading-relaxed">
|
||||
<span class="font-medium text-gray-500 flex-none w-[9rem]">{$t('t_16_1746667591069')}</span>
|
||||
<span class="flex-1 text-gray-700">
|
||||
{isWildcard.value ? $t('t_17_1746667588785') : $t('t_18_1746667590113')}
|
||||
</span>
|
||||
<span class="flex-1 text-gray-700">{$t('t_17_1746667588785')}</span>
|
||||
</div>
|
||||
<div class="flex mb-[1rem] leading-relaxed">
|
||||
<span class="font-medium text-gray-500 flex-none w-[9rem]">{$t('t_19_1746667589295')}</span>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { FormRules } from 'naive-ui'
|
||||
import { useModal, useForm, useFormHooks, useLoadingMask, useModalHooks } from '@baota/naive-ui/hooks'
|
||||
import { useError } from '@baota/hooks/error'
|
||||
import { isDomain } from '@baota/utils/business'
|
||||
import { isDomain, isWildcardDomain } from '@baota/utils/business'
|
||||
import { useStore as useWorkflowViewStore } from '@autoDeploy/children/workflowView/useStore'
|
||||
import { $t } from '@locales/index'
|
||||
import { useStore } from './useStore'
|
||||
@@ -127,10 +127,10 @@ export const useCertificateFormController = () => {
|
||||
message: $t('t_7_1746667592468'),
|
||||
trigger: 'input',
|
||||
validator: (rule: any, value: any, callback: any) => {
|
||||
if (!isDomain(value)) {
|
||||
callback(new Error($t('t_7_1746667592468')))
|
||||
} else {
|
||||
if (isDomain(value) || isWildcardDomain(value)) {
|
||||
callback()
|
||||
} else {
|
||||
callback(new Error($t('t_7_1746667592468')))
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user