From af436aa050f76584cd5cb88e413e45cd08c15d50 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 17 五月 2023 14:14:04 +0800
Subject: [PATCH] 修改部分错误,增加新功能
---
App.vue | 37 +++++++++++++++++++------------------
1 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/App.vue b/App.vue
index 681a4b3..727d723 100644
--- a/App.vue
+++ b/App.vue
@@ -1,19 +1,24 @@
<script>
+import { mapState, mapMutations } from 'vuex';
export default {
onShow() {},
- methods: {}
- // created() {
- // uni.loadFontFace({
- // family: 'siYuanLight', // 瀛椾綋鍚嶇О锛屽彲浠ヨ嚜瀹氫箟
- // source: 'url("/utils/fonts/siyuan.OTF")', // 瀛椾綋鏂囦欢璺緞
- // success() {
- // console.log('瀛椾綋鍔犺浇鎴愬姛');
- // },
- // fail() {
- // console.log('瀛椾綋鍔犺浇澶辫触');
- // }
- // });
- // }
+ 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>
@@ -22,7 +27,7 @@
@import '@/uni_modules/uview-ui/index.scss';
@font-face {
font-family: siYuanLight;
- src: url('https://mx.jzeg.cn:9095/appimg/fonts/siyuan.OTF');
+ src: url('https://mx.jzeg.cn:9095/appimg/fonts/siyuannormal.OTF');
}
@font-face {
font-family: weighting;
@@ -31,8 +36,4 @@
body {
font-family: siYuanLight, sans-serif;
}
-// @font-face {
-// font-family: 'weighting';
-// src: url('./utils/fonts/weighing.TTF');
-// }
</style>
--
Gitblit v1.9.1