diff --git a/packages/ui/certd-client/src/views/sys/plugin/crud.tsx b/packages/ui/certd-client/src/views/sys/plugin/crud.tsx index b7f00991..6de8485f 100644 --- a/packages/ui/certd-client/src/views/sys/plugin/crud.tsx +++ b/packages/ui/certd-client/src/views/sys/plugin/crud.tsx @@ -119,12 +119,15 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat form: { order: 0, rules: [{ required: true }], - }, - editForm: { component: { disabled: true, }, }, + addForm: { + component: { + disabled: false, + }, + }, dict: dict({ data: [ { label: "授权", value: "access" }, diff --git a/packages/ui/certd-client/src/views/sys/plugin/edit.vue b/packages/ui/certd-client/src/views/sys/plugin/edit.vue index d77c6434..c66ebe63 100644 --- a/packages/ui/certd-client/src/views/sys/plugin/edit.vue +++ b/packages/ui/certd-client/src/views/sys/plugin/edit.vue @@ -4,7 +4,10 @@
插件编辑 - {{ plugin.title }} 【{{ plugin.author }}/{{ plugin.name }}】 + + {{ plugin.title }} + 【{{ plugin.author }}/{{ plugin.name }}】 +
@@ -49,7 +52,6 @@ import createCrudOptions from "./crud"; import { useColumns } from "@fast-crud/fast-crud"; import yaml from "js-yaml"; -const CertApplyPluginNames = ["CertApply", "CertApplyLego", "CertApplyUpload"]; defineOptions({ name: "SysPluginEdit", }); @@ -60,6 +62,7 @@ const formOptionsRef: Ref = ref(); const baseFormRef: Ref = ref({}); function initFormOptions() { const formCrudOptions = createCrudOptions({ + //@ts-ignore crudExpose: {}, context: {}, }); @@ -68,6 +71,7 @@ function initFormOptions() { const formOptions = buildFormOptions(formCrudOptions.crudOptions, {}); + formOptions.mode = "edit"; formOptions.col = { span: 24, };