From 46f79b491173d284a4900d19e7aecf7509481438 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 21 一月 2022 17:21:25 +0800
Subject: [PATCH] 2022-01-21

---
 src/views/login/index.jsx |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/views/login/index.jsx b/src/views/login/index.jsx
index 79278be..50ea083 100644
--- a/src/views/login/index.jsx
+++ b/src/views/login/index.jsx
@@ -527,6 +527,14 @@
             res.indexlogo = res.indexlogo ? res.indexlogo.replace(/:8080/ig, '').replace(/http:/ig, 'https:') : ''
             res.loginlogo = res.loginlogo ? res.loginlogo.replace(/:8080/ig, '').replace(/http:/ig, 'https:') : ''
 
+            if (/^https/.test(window.location.protocol)) { // https杞崲
+              res.Banner = res.Banner ? res.Banner.replace(/^http:/ig, 'https:') : ''
+              res.doclogo = res.doclogo ? res.doclogo.replace(/^http:/ig, 'https:') : ''
+              res.indexlogo = res.indexlogo ? res.indexlogo.replace(/^http:/ig, 'https:') : ''
+              res.loginlogo = res.loginlogo ? res.loginlogo.replace(/^http:/ig, 'https:') : ''
+              res.titlelogo = res.titlelogo ? res.titlelogo.replace(/^http:/ig, 'https:') : ''
+            }
+
             let _url = window.location.href.split('#')[0] + 'system'
             let systemMsg = {
               favicon: res.titlelogo || '',

--
Gitblit v1.8.0