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;