Blame view

public/index.html 1.14 KB
1
<!--
xiaomiao committed
2
 * @Description:
3
 * @Autor: renchao
yangwei committed
4
 * @LastEditTime: 2023-06-20 09:56:19
5
-->
赵千 committed
6 7
<!DOCTYPE html>
<html>
8 9 10 11 12 13 14

<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">
renchao@pashanhoo.com committed
15
  <link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
16 17 18
  <title>
  </title>
</head>
19
<script>
20 21 22 23 24
  window._config = {
    // 是否微服务模式,业务系统根据需要读取,此demo未使用
    cloudEnable: false,
    baseUrl: location.origin || location.protocol + '//' + location.host,
    // 是否启用单点登录
yangwei committed
25
    casEnable: false,
26 27 28 29 30 31 32 33
    // cas 基地址
    casBaseURL: 'http://192.168.2.38/cas',
    services: {
      // 配置到 contextPath 前一级
      management: 'http://192.168.2.38',
      business: 'http://localhost:7001'
    }
  }
renchao@pashanhoo.com committed
34
  fetch('<%= BASE_URL %>config.json')
35 36 37
    .then(response => response.json())
    .then(config => {
      window.config = config
38
    })
39
</script>
40 41 42 43 44

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

45
</html>