From ba72fa3f052493b67b32818ff404bc378f2e06bb Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sat, 12 Apr 2025 02:10:17 +0800 Subject: [PATCH] chore: --- .../src/plugin/cert-plugin/base-convert.ts | 2 +- .../src/views/certd/pipeline/certd-form/crud.tsx | 8 ++------ .../src/views/certd/pipeline/sub-domain/crud.tsx | 12 ++++++++++++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/packages/plugins/plugin-cert/src/plugin/cert-plugin/base-convert.ts b/packages/plugins/plugin-cert/src/plugin/cert-plugin/base-convert.ts index d78aad39..a73dd2c4 100644 --- a/packages/plugins/plugin-cert/src/plugin/cert-plugin/base-convert.ts +++ b/packages/plugins/plugin-cert/src/plugin/cert-plugin/base-convert.ts @@ -28,7 +28,7 @@ export abstract class CertApplyBaseConvertPlugin extends AbstractTaskPlugin { "2、子域名被通配符包含的不要填写,例如:www.foo.com已经被*.foo.com包含,不要填写www.foo.com\n" + "3、泛域名只能通配*号那一级(*.foo.com的证书不能用于xxx.yyy.foo.com、不能用于foo.com)\n" + "4、输入一个,空格之后,再输入下一个\n" + - "5、如果你配置了子域名托管解析,请先[设置托管子域名](#/certd/pipeline/subDomain)", + "5、如果你配置了子域托管解析,请先[设置托管子域名](#/certd/pipeline/subDomain)", }) domains!: string[]; diff --git a/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx b/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx index f7efe010..6d366353 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx +++ b/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx @@ -1,15 +1,11 @@ import { compute, CreateCrudOptionsRet, dict } from "@fast-crud/fast-crud"; import { useReference } from "/@/use/use-refrence"; -import _, { merge } from "lodash-es"; -import { useUserStore } from "/@/store/modules/user"; -import { useSettingStore } from "/@/store/modules/settings"; +import { merge, cloneDeep } from "lodash-es"; import * as api from "../api.plugin"; import NotificationSelector from "/@/views/certd/notification/notification-selector/index.vue"; export default function (certPlugins: any[], formWrapperRef: any): CreateCrudOptionsRet { const inputs: any = {}; - const userStore = useUserStore(); - const settingStore = useSettingStore(); const moreParams = []; for (const plugin of certPlugins) { for (const inputKey in plugin.input) { @@ -18,7 +14,7 @@ export default function (certPlugins: any[], formWrapperRef: any): CreateCrudOpt inputs[inputKey].form.show = true; continue; } - const inputDefine = _.cloneDeep(plugin.input[inputKey]); + const inputDefine = cloneDeep(plugin.input[inputKey]); if (!inputDefine.required && !inputDefine.maybeNeed) { moreParams.push(inputKey); // continue; diff --git a/packages/ui/certd-client/src/views/certd/pipeline/sub-domain/crud.tsx b/packages/ui/certd-client/src/views/certd/pipeline/sub-domain/crud.tsx index 3362497b..ac61036e 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/sub-domain/crud.tsx +++ b/packages/ui/certd-client/src/views/certd/pipeline/sub-domain/crud.tsx @@ -73,6 +73,18 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat search: { show: true, }, + form: { + helper: { + render() { + return ( +
+ 如果您不理解什么是子域托管,可以参考文档 + 子域管理 +
+ ); + }, + }, + }, editForm: { component: { disabled: true,