You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
474 B
24 lines
474 B
|
2 weeks ago
|
<script>
|
||
|
|
export default {
|
||
|
|
onLaunch: function() {
|
||
|
|
console.log('App Launch')
|
||
|
|
},
|
||
|
|
onShow: function() {
|
||
|
|
console.log('App Show')
|
||
|
|
console.log(uni.getStorageSync('loginRes'))
|
||
|
|
if(!uni.getStorageSync('loginRes') || !uni.getStorageSync('loginRes').accessToken){
|
||
|
|
uni.navigateTo({
|
||
|
|
url:'/pages/login/login'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
},
|
||
|
|
onHide: function() {
|
||
|
|
console.log('App Hide')
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style>
|
||
|
|
/*每个页面公共css */
|
||
|
|
</style>
|