<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <title>EAP5-Admin-Login</title>
  <% if(htmlWebpackPlugin.vite){%>
    <!--预览时 公共库-->
    <link rel="stylesheet" href="/assets_platform/element-ui/index.css">
    <script src="/assets_platform/vue/vue.min.js"></script>
    <script src="/assets_platform/vuex/vuex.min.js"></script>
    <script src="/assets_platform/vue-router/vue-router.min.js"></script>
    <script src="/assets_platform/element-ui/index.js"></script>
    <script src="/assets_platform/eap/eap.umd.min.js"></script>
    
    <%}%>
    <% if(!htmlWebpackPlugin.vite){%>
      <link rel="stylesheet" href="${serverPath}/render/assets_platform/element-ui/index.css">
      <script src="${serverPath}/render/assets_platform/vue/vue.min.js"></script>
      <script src="${serverPath}/render/assets_platform/vuex/vuex.min.js"></script>
      <script src="${serverPath}/render/assets_platform/vue-router/vue-router.min.js"></script>
      <script src="${serverPath}/render/assets_platform/element-ui/index.js"></script>
      <!--发布时 公共库-->
      <!-- <script src="${serverPath}/render/assets_platform/vendor_dll/vuelibs.dll.js"></script> -->
      <script src="${serverPath}/render/assets_platform/vendor_dll/vendor.dll.js"></script>
      <script src="${serverPath}/render/assets_platform/eap/eap.umd.min.js"></script>
      <%}%>
      <!-- <script src="/eaptpl/setting/desktop/appsetting/js/1.0.0/appsetting.js" type="text/javascript"></script> -->
</head>

<body>
  <div id="app">
      <div style="padding:50px 0;text-align:center;">
          <div>
            <img id="main_loading_logo" src="" />
          </div>
          <div>系统正在预览初始化中...<a href="javascript:location.reload();">【点我刷新】</a></div>
    
        </div>
  </div>
  <script>
    let _img=window.customSysCofig&&window.customSysCofig.sysLoadLogo&&window.customSysCofig.sysLoadLogo.src;
      document.getElementById("main_loading_logo").src=(_img||(window._global?"./assets/logo_max.png":"./static/img/logo_max.png"));
     
    if(window.customSysCofig&&window.customSysCofig.syTitle){
      document.title=window.customSysCofig.loginTitle;
    }
    <% if(!htmlWebpackPlugin.vite){%>
    window.__loginCfg={
      pageType:"${pageType}",
      redirect:"${redirect}",
    }
    <%}%>
  </script>
  <% if(htmlWebpackPlugin.vite==true){%>
  <script type="module" src="./index.js"></script>
  <script>
      //预览时判断1.5s还没有加载完，自动重刷
      var _winLoadedCtrl = window.setInterval(function(){
          if(document.getElementById("main_loading_logo")){
            window.location.reload();
          }else{
            window.clearInterval(_winLoadedCtrl);
          }
        },5000)
    </script>
  <%}%>
  <!-- built files will be auto injected -->
</body>

</html>