qa-prevention-xgf-app/App.vue

33 lines
618 B
Vue
Raw Normal View History

2023-11-07 10:24:08 +08:00
<script>
export default {
onLaunch: function () {
2025-03-07 16:05:16 +08:00
// console.log('App Launch')
2023-11-07 10:24:08 +08:00
this.isLogin()
},
onShow: function () {
2025-03-07 16:05:16 +08:00
// console.log('App Show')
2023-11-07 10:24:08 +08:00
},
onHide: function () {
2025-03-07 16:05:16 +08:00
// console.log('App Hide')
2023-11-07 10:24:08 +08:00
},
methods:{
// 是否登录
isLogin() {
if(!this.$store.getters.getUserInfo.USER_ID) {
uni.redirectTo({
url: '/pages/login/login'
})
}
}
}
}
</script>
<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
@import './styles/theme.scss';
@import './styles/uview.scss';
@import './styles/home_style.scss';
</style>