-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
49 lines (49 loc) · 1.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>msc</title>
<script src="/web.min.js"></script>
<script>
var baseURL = "http://msc-serve.missxiaolin.com";
var urls = ['127.0.0.1', "localhost", "m.missxiaolin.com"]
if (urls.indexOf(window.location.hostname) > -1) {
baseURL = "http://127.0.0.1:9001";
}
MITO.init({
monitorAppId: "adm",
uuId: () => MITO.getCookie("userId"),
watch: {
pageChange: true,
jsError: true,
vueError: true,
promise: true,
performance: true,
whiteScreen: true,
click: true,
resource: true,
request: true,
},
report: {
url: baseURL + "/api/update", //错误上报地址
reportType: 1, // 1:fetch 2:img 3
maxQueues: 100, // img 尽量限制在 10条
beforeSend: (data) => data,
encryption: 0,
delay: 30000,
},
customInfo: {
getDynamic: () => {
//获取动态传参 1.4.5版本及以后支持该方式
},
},
});
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>