-
Notifications
You must be signed in to change notification settings - Fork 851
Expand file tree
/
Copy pathApp.vue
More file actions
43 lines (39 loc) · 864 Bytes
/
App.vue
File metadata and controls
43 lines (39 loc) · 864 Bytes
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
<script>
import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
export default {
onLaunch: async function() {
console.log('App Launch')
// #ifdef MP-WEIXIN
uniCloud.initSecureNetworkByWeixin()
// #endif
checkUpdate() //更新升级
},
mounted() {
// #ifdef H5
//const VConsole = require('@/common/js/vconsole.min.js')
//new VConsole()
// #endif
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
/*每个页面公共css */
/* #ifndef APP-NVUE */
view {
box-sizing: border-box;
}
@font-face {
font-family: "iconfont";
src: url('https://at.alicdn.com/t/font_2354462_s00xh8caffp.ttf');
}
.ico {
font-family: iconfont;
}
/* #endif */
</style>