index.html 1.55 KB
<!--
 * @Description: 
 * @Autor: renchao
<<<<<<< HEAD
 * @LastEditTime: 2023-05-31 16:04:35
=======
<<<<<<< HEAD
 * @LastEditTime: 2023-05-30 15:08:51
=======
 * @LastEditTime: 2023-05-26 16:57:47
>>>>>>> origin/dev
>>>>>>> bus
-->
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <meta name="referrer" content="no-referrer" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
  <title>
    <%= webpackConfig.name %>
  </title>
</head>
<script>
<<<<<<< HEAD
  window.baseUrl = location.origin || location.protocol + '//' + location.host
=======
<<<<<<< HEAD
  window.baseUrl = location.origin || location.protocol + '//' + location.host
  const authorization = "bearer ATT-7-TiYJVcoDnfhNGs160E6MbQ-QA9Ot3Tby"
=======
>>>>>>> bus
  window._config = {
    // 是否微服务模式,业务系统根据需要读取
    cloudEnable: false,
    // 是否启用单点登录
    casEnable: true,
    // cas 基地址
    casBaseURL: 'http://192.168.2.38/cas',
    services: {
      // 配置到 contextPath 前一级
      management: 'http://192.168.2.38',
      business: 'http://localhost:7001'
    }
  }
<<<<<<< HEAD
=======
>>>>>>> origin/dev
>>>>>>> bus
  fetch('<%= BASE_URL %>config.json')
    .then(response => response.json())
    .then(config => {
      window.config = config
    });
</script>

<body>
  <div id="app"></div>
</body>

</html>