fix: 解决网站设置切换到 HTTPS 控制台报错的问题 (#1016)

fix https://github.com/1Panel-dev/1Panel/issues/672
This commit is contained in:
zhengkunwang223 2023-05-12 15:08:23 +08:00 committed by GitHub
parent 06f1d03b93
commit bd2a49e299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ const get = () => {
if (res.data.httpConfig != '') {
form.httpConfig = res.data.httpConfig;
}
if (res.data.SSLProtocol.length > 0) {
if (res.data.SSLProtocol && res.data.SSLProtocol.length > 0) {
form.SSLProtocol = res.data.SSLProtocol;
}
if (res.data.algorithm != '') {