Browse Source

fix: 解决网站设置 HTTPS 证书显示错误的问题 (#1629)

Refs https://github.com/1Panel-dev/1Panel/issues/1626
pull/1639/head v1.4.1
zhengkunwang 1 year ago committed by GitHub
parent
commit
05004cb141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      frontend/src/views/website/website/config/basic/https/index.vue

11
frontend/src/views/website/website/config/basic/https/index.vue

@ -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 = {};

Loading…
Cancel
Save