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
455 B

7 months ago
<script>
export default {
onLaunch: function() {
console.log('App Launch')
7 months ago
const token = uni.getStorageSync('token');
if (!token) {
uni.reLaunch({ url: '/pages/login/login' });
} else {
uni.reLaunch({ url: '/pages/index/index' });
}
7 months ago
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
/*每个页面公共css */
7 months ago
</style>