diff --git a/packages/ui/certd-client/src/views/framework/login/index.vue b/packages/ui/certd-client/src/views/framework/login/index.vue index 5badc566..58b52b83 100644 --- a/packages/ui/certd-client/src/views/framework/login/index.vue +++ b/packages/ui/certd-client/src/views/framework/login/index.vue @@ -44,7 +44,7 @@ 登录 -
忘记管理员密码?
+
忘记管理员密码?
@@ -178,6 +178,7 @@ export default defineComponent({ function hasRegisterTypeEnabled() { return sysPublicSettings.registerEnabled && (sysPublicSettings.usernameRegisterEnabled || sysPublicSettings.emailRegisterEnabled); } + return { loading, formState, @@ -193,6 +194,7 @@ export default defineComponent({ twoFactor, handleTwoFactorSubmit, verifyCodeInputRef, + settingStore, }; }, }); diff --git a/packages/ui/certd-server/src/plugins/plugin-farcdn/access.ts b/packages/ui/certd-server/src/plugins/plugin-farcdn/access.ts index 21f4aff8..81fa5b06 100644 --- a/packages/ui/certd-server/src/plugins/plugin-farcdn/access.ts +++ b/packages/ui/certd-server/src/plugins/plugin-farcdn/access.ts @@ -53,6 +53,21 @@ export class FarcdnAccess extends BaseAccess { accessKey!: string; + @AccessInput({ + title: "HttpProxy", + component: { + placeholder: "http://192.168.x.x:10811", + component: { + name: "a-input", + vModel: "value" + } + }, + encrypt: false, + required: true + }) + httpProxy!: string; + + @AccessInput({ title: "测试", component: { @@ -139,6 +154,7 @@ export class FarcdnAccess extends BaseAccess { keyData: req.cert.key, isOn: true, isCA: false, + serverName: oldCert.serverName, commonNames: [certReader.getMainDomain()], dnsNames: certReader.getAltNames(), timeBeginAt: detail.notBefore, @@ -163,7 +179,8 @@ export class FarcdnAccess extends BaseAccess { url: req.url, baseURL:this.endpoint, method: "POST", - data: params + data: params, + httpProxy: this.httpProxy||undefined, }); if (res.code === "200") {