From ae1aad66a165ee7253bed2127a3b53baa40c2361 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期三, 17 五月 2023 08:35:33 +0800 Subject: [PATCH] 修复错误,增加验证 --- App.vue | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/App.vue b/App.vue index 2ff8874..727d723 100644 --- a/App.vue +++ b/App.vue @@ -1,11 +1,39 @@ <script> +import { mapState, mapMutations } from 'vuex'; export default { onShow() {}, - methods: {} + onLaunch() {}, + onHide() { + console.log('appvue闅愯棌鍚庡彴'); + this.changeisconnect(false); + console.log(this.globalisUploadimg); + if (!this.globalisconnect && !this.globalisUploadimg) { + uni.switchTab({ + url: '/pages/tabbar-page/index-tabbar/index-tabbar' + }); + } + }, + methods: { + ...mapMutations(['changeisconnect']) + }, + computed: { + ...mapState(['globalisconnect', 'globalisUploadimg']) + } }; </script> <style lang="scss" scoped> /*姣忎釜椤甸潰鍏叡css */ @import '@/uni_modules/uview-ui/index.scss'; +@font-face { + font-family: siYuanLight; + src: url('https://mx.jzeg.cn:9095/appimg/fonts/siyuannormal.OTF'); +} +@font-face { + font-family: weighting; + src: url('https://mx.jzeg.cn:9095/appimg/fonts/weighting.TTF'); +} +body { + font-family: siYuanLight, sans-serif; +} </style> -- Gitblit v1.9.1