diff --git a/docs/guide/use/custom-script/index.md b/docs/guide/use/custom-script/index.md index ea5a3ebe..0569cd75 100644 --- a/docs/guide/use/custom-script/index.md +++ b/docs/guide/use/custom-script/index.md @@ -6,6 +6,10 @@ ## 2. 使用示例 ```js + +// 如果需要引用第三方库,必须使用import语法 +// const thirdSdk = await import("third-sdk-name") + const certPem = ctx.self.cert.crt const certKey = ctx.self.cert.key diff --git a/packages/ui/certd-client/src/views/certd/suite/api.ts b/packages/ui/certd-client/src/views/certd/suite/api.ts index e0bccade..f972d305 100644 --- a/packages/ui/certd-client/src/views/certd/suite/api.ts +++ b/packages/ui/certd-client/src/views/certd/suite/api.ts @@ -2,6 +2,10 @@ import { request } from "/@/api/service"; import { dict } from "@fast-crud/fast-crud"; export const durationDict = dict({ data: [ + { label: "3天", value: 3 }, + { label: "7天", value: 7 }, + { label: "30天", value: 30 }, + { label: "90天", value: 90 }, { label: "1年", value: 365 }, { label: "2年", value: 730 }, { label: "3年", value: 1095 },