-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
39 lines (35 loc) · 1.03 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
<script>
import {myApi} from "./utils/apiManager/myApi";
import {userInfo} from "./utils/userInfo/user";
export default {
onLaunch: function () {
console.log('App Launch');
},
onShow: function () {
uni.getStorage({
key: 'Authorization',
success: function (res) {
myApi.getAuthUserInfo(res.data).then(res => {
userInfo.initInfo(res.data);
uni.reLaunch({
url: '/pages/index/letter/writerLetter/writerLetter',
})
})
},
fail() {
console.log('请求头部已经不存在')
}
});
},
onHide: function () {
console.log('App Hide');
}
};
</script>
<style>
/* 解决头条小程序组件内引入字体不生效的问题 */
/* #ifdef MP-TOUTIAO */
@font-face {
}
/* #endif */
</style>