From 47c996265ab01dcbd5b01be1283cecf368247381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E5=B8=85?= Date: Thu, 8 Sep 2022 09:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=A4=E6=96=ADhttps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/userformal/login/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/userformal/login/index.tsx b/src/pages/userformal/login/index.tsx index 874d450..6d6add9 100644 --- a/src/pages/userformal/login/index.tsx +++ b/src/pages/userformal/login/index.tsx @@ -299,7 +299,7 @@ const Index: React.FC<{}> = () => { //是https或者是本地 const httpsOrLocal = () => { let protocol = document.location.protocol; - if (protocol == 'https') { + if (protocol == 'https:') { return true; } else { let host = window.location.hostname;