-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
63 lines (55 loc) · 1.53 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- 不要缓存 -->
<meta http-equiv="pragram" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="expires" content="0">
<!-- 放在静态文件夹 -->
<link rel="icon" type="image/x-icon" href="./static/base/img/zjkj.png" />
<title>知匠项目管控系统</title>
</head>
<body>
<div id="app">
</div>
<!-- built files will be auto injected -->
<script>
var vm;
//后台地址统一配置
var urlArr = {
local: {
baseUrl: 'http://localhost:5000/',
},
test: {
baseUrl: 'http://47.107.56.156:2021/',
},
formal: {
baseUrl: 'http://',
}
}
var urlSetting = urlArr.local;//本地
//var urlSetting = urlArr.test;//测试
//var urlSetting = urlArr.formal;//正式
var baseUrl = urlSetting.baseUrl;
var ISPC;
ISPC = IsPC();
//判断是否为pc端
function IsPC() {
var userAgentInfo = navigator.userAgent;
var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
var flag = true;
for (var v = 0; v < Agents.length; v++) {
if (userAgentInfo.indexOf(Agents[v]) > 0) {
flag = false;
break;
}
}
return flag;
}
</script>
</body>
</html>