-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
47 lines (41 loc) · 1.23 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0px;
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}
#app {
height: 100%;
position: absolute;
width: 100%;
background-color: #fff;
overflow: hidden;
}
</style>
<meta name="theme-color" content="#21B046">
<link rel="shortcut icon" type="image/png" href="static/favicon.png" />
<link rel="manifest" href="static/manifest.json">
<title>猴啊家教</title>
</head>
<body>
<div id="app">
<router-view></router-view>
</div>
<!-- built files will be auto injected -->
</body>
<script>
if ('serviceWorker' in navigator && window.location.host !== "127.0.0.1:8080" && window.location.host !== "localhost:8080") {
navigator.serviceWorker.register('/sw.js', { scope: '/' }).then(
function (registration) {
console.log('[serviceWorker]: registrations sucessful with scope: ', registration.scope)
}
).catch(function (err) {
console.log('[serviceWorker]: registration failed', err)
})
}
</script>
</html>