Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/api/interface/website.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ export namespace Website {
email: string;
url: string;
type: string;
keyType: string;
useProxy: boolean;
}

Expand Down
11 changes: 10 additions & 1 deletion frontend/src/views/website/ssl/create/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ import { Rules, checkMaxLength } from '@/global/form-rules';
import FileList from '@/components/file-list/index.vue';
import i18n from '@/lang';
import { FormInstance } from 'element-plus';
import { computed, reactive, ref } from 'vue';
import { computed, reactive, ref, watch } from 'vue';
import { MsgSuccess } from '@/utils/message';
import { KeyTypes } from '@/global/mimetype';
import { getDNSName, getAccountName } from '@/utils/ssl';
Expand Down Expand Up @@ -265,6 +265,15 @@ const initData = () => ({

const ssl = ref(initData());
const operate = ref('create');
watch([() => ssl.value.acmeAccountId, acmeAccounts], () => {
if (operate.value !== 'create' || ssl.value.provider === 'selfSigned') {
return;
}
const account = acmeAccounts.value?.find((item) => item.id === ssl.value.acmeAccountId);
if (account?.keyType) {
ssl.value.keyType = account.keyType;
}
});
const dnsResolve = ref<Website.DNSResolve[]>([]);
const em = defineEmits(['close', 'submit']);

Expand Down
Loading