OfficeApp/App.vue

33 lines
608 B
Vue
Raw Normal View History

2023-07-15 17:27:06 +08:00
<script>
2023-07-15 17:51:20 +08:00
export default {
onLaunch: function() {
console.log('App Launch')
2023-08-07 10:19:52 +08:00
try{
if(!this.$store.state.app.token)uni.redirectTo({
url: '/pages/oaLogin/oaLogin'
})
}catch(e){
uni.redirectTo({
url: '/pages/oaLogin/oaLogin'
})
}
2023-07-15 17:51:20 +08:00
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
2023-07-15 17:27:06 +08:00
</script>
<style>
2023-07-15 17:51:20 +08:00
/*每个页面公共css */
@import 'static/css/base.css';
@import 'static/css/style.scss';
view {
box-sizing: border-box;
}
2023-07-15 17:27:06 +08:00
</style>