From 223229d8999b1be5541ff4e91a3e6d3dda16e4c0 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 14 十二月 2021 15:49:24 +0800 Subject: [PATCH] 2021-12-14 --- src/views/login/index.jsx | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/login/index.jsx b/src/views/login/index.jsx index 34cb12c..a7fa087 100644 --- a/src/views/login/index.jsx +++ b/src/views/login/index.jsx @@ -518,12 +518,13 @@ // 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:') : '' - // } + 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 = { -- Gitblit v1.8.0