| | |
| | | import { mapState, mapMutations } from 'vuex'; |
| | | export default { |
| | | onShow() {}, |
| | | onLaunch() {}, |
| | | onHide() { |
| | | console.log('appvue隐藏后台'); |
| | | this.changeisconnect(false); |
| | | if (!this.globalisconnect) { |
| | | console.log(this.globalisUploadimg); |
| | | if (!this.globalisconnect && !this.globalisUploadimg) { |
| | | uni.switchTab({ |
| | | url: '/pages/tabbar-page/index-tabbar/index-tabbar' |
| | | }); |
| | |
| | | ...mapMutations(['changeisconnect']) |
| | | }, |
| | | computed: { |
| | | ...mapState(['globalisconnect']) |
| | | ...mapState(['globalisconnect', 'globalisUploadimg']) |
| | | } |
| | | }; |
| | | </script> |