-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
76 lines (68 loc) · 1.9 KB
/
App.vue
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
64
65
66
67
68
69
70
71
72
73
74
75
76
<template>
<div id="app">
<router-view />
<service-worker-update-popup />
</div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import ServiceWorkerUpdatePopup from '@/pwa/components/ServiceWorkerUpdatePopup.vue'
@Component({
name: 'App',
components: {
ServiceWorkerUpdatePopup
}
})
export default class extends Vue {
mounted() {
console.log('app start')
// if (window.location.pathname !== '/custom/') {
// window.location.href = 'https://www.woody.vip/custom/'
// }
}
}
</script>
<style>
html, body, #app, .wx-pages {
padding: 0;
margin: 0;
height: 100%;
overflow: hidden;
-webkit-overflow-scrolling: touch;
}
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(./assets/material-design-icons/iconfont/MaterialIcons-Regular.eot); /* For IE6-8 */
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url(./assets/material-design-icons/iconfont/MaterialIcons-Regular.woff2) format('woff2'),
url(./assets/material-design-icons/iconfont/MaterialIcons-Regular.woff) format('woff'),
url(./assets/material-design-icons/iconfont/MaterialIcons-Regular.ttf) format('truetype');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px; /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: 'liga';
}
.mobile-dialog{
width: 100%;
}
</style>