mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-17 03:04:46 +08:00
fix: 解决网站设置 HTTPS 证书显示错误的问题 (#1629)
Refs https://github.com/1Panel-dev/1Panel/issues/1626
This commit is contained in:
parent
dfcef390d0
commit
05004cb141
@ -222,7 +222,16 @@ const listSSL = () => {
|
|||||||
ListSSL(sslReq).then((res) => {
|
ListSSL(sslReq).then((res) => {
|
||||||
ssls.value = res.data || [];
|
ssls.value = res.data || [];
|
||||||
if (ssls.value.length > 0) {
|
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);
|
changeSSl(form.websiteSSLId);
|
||||||
} else {
|
} else {
|
||||||
websiteSSL.value = {};
|
websiteSSL.value = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user