pc.html 1.75 KB
<!DOCTYPE html>
<html data-scale="true" lang="zh-cmn-Hans">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
  <script>
    if (!window.Promise) {
      document.writeln('<script src="/cloudstore/resource/mobile/es6-promise/3.2.2/es6-promise.min.js"' + '>' + '<' + '/' + 'script>');
    }
  </script>
</head>

<body>
  <div id="root"></div>
  <script type="text/javascript" src="/cloudstore/resource/mobile/fastclick/fastclick-1.0.6.js"></script>
  <script type="text/javascript" src="/cloudstore/resource/mobile/inobounce/inobounce.min.js"></script>
  <script type="text/javascript" src="/cloudstore/resource/mobile/loadjs/loadjs.min.js"></script>
  <script>
    document.writeln('<script src="/spa/coms/ssoConfig/config.js?v=' + new Date().getTime() + '">' + '<' + '/' + 'script>');
    document.writeln('<script src="/spa/coms/ssoSDK/ssoInit.js?v=' + new Date().getTime() + '">' + '<' + '/' + 'script>');
  </script>
  <script>
    if ('addEventListener' in document) {
      document.addEventListener('DOMContentLoaded', function () {
        FastClick.attach(document.body);
      }, false);
    }
  </script>
  <script>
    window.em_ssoInit().then(function () {
      window.sso_callApi({
        url: '/api/system/appmanage/route',
        params: {
          type: '2'
        }
      }).then(function (res) {
        if (res.status == '1') {
          window.location.href = res.url || '/spa/portal/static4em/index.html#/main'
        } else {
          alert(JSON.stringify(res));
        }
      }).catch(function (error) {
        alert(JSON.stringify(error));
      })
    }).catch(function (error) {
      alert(JSON.stringify(error));
    })
  </script>
</body>

</html>