Skip to content

Commit

Permalink
fix: 解决网站设置 HTTPS 证书显示错误的问题 (#1629)
Browse files Browse the repository at this point in the history
Refs #1626
  • Loading branch information
zhengkunwang223 authored Jul 12, 2023
1 parent dfcef39 commit 05004cb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/src/views/website/website/config/basic/https/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,16 @@ const listSSL = () => {
ListSSL(sslReq).then((res) => {
ssls.value = res.data || [];
if (ssls.value.length > 0) {
form.websiteSSLId = ssls.value[0].id;
let exist = false;
for (const ssl of ssls.value) {
if (ssl.id === form.websiteSSLId) {
exist = true;
break;
}
}
if (!exist) {
form.websiteSSLId = ssls.value[0].id;
}
changeSSl(form.websiteSSLId);
} else {
websiteSSL.value = {};
Expand Down

0 comments on commit 05004cb

Please sign in to comment.