This commit is contained in:
Gdpao
2020-08-25 11:12:33 +08:00
parent 8ce148950a
commit 94c22fdef1
2 changed files with 9 additions and 1 deletions

View File

@@ -6,6 +6,15 @@ export default {
onLaunch: function() {
getApp().globalData.im = this.imService
console.log('App Launch');
// 缓存token
uni.getStorage({
key: "token",
success: (res) => {
uni.switchTab({
url: "/pages/index/index"
})
}
})
},
onShow: function() {
console.log('App Show');