From 05004cb141583963e7f5ed235a39f0be3283330a Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 12 Jul 2023 21:17:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20HTTPS=20=E8=AF=81=E4=B9=A6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98=20(#1629?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/1626 --- .../website/website/config/basic/https/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/website/website/config/basic/https/index.vue b/frontend/src/views/website/website/config/basic/https/index.vue index 18d54e937..7487f7602 100644 --- a/frontend/src/views/website/website/config/basic/https/index.vue +++ b/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 = {};