king
2022-04-27 7b9e5eecd148ed819f9fb819a4507f263eaa4533
src/views/sso/index.jsx
@@ -65,13 +65,11 @@
    Api.getSystemConfig(_param).then(res => {
      if (res.status) {
        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:') : ''
        }
        // positecgroup
        // res.Banner = res.Banner ? res.Banner.replace(/:8080/ig, '').replace(/http:/ig, 'https:') : ''
        // res.doclogo = res.doclogo ? res.doclogo.replace(/:8080/ig, '').replace(/http:/ig, 'https:') : ''
        // 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:') : ''
        const _href = window.location.href.split('#')[0]
        let _url = _href + 'system'