From fb0aaa350e90a876ea40fa4d0c5ef646467c591b Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期二, 04 七月 2023 15:03:03 +0800
Subject: [PATCH] no message

---
 uniapp/App.vue |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/uniapp/App.vue b/uniapp/App.vue
index 2940aa8..0838844 100644
--- a/uniapp/App.vue
+++ b/uniapp/App.vue
@@ -139,6 +139,7 @@
 			ifwt: 0,
 			hasinit:false,
 			hasbcinit:false,
+			isLaunch:false
 			
 		},
 		onShow: function() {
@@ -158,6 +159,7 @@
 						}
 						if(!that.globalData.hasbcinit)
 						{
+							console.log("鍒濆鍖栫櫨宸濇彃浠�")
 							that.bcInit();
 						}
 						/* let appInfo = utils.getCacheSync('appInfo')
@@ -173,7 +175,6 @@
 				var route = routes[routes.length - 1].route
 			}
 			// #ifdef APP-PLUS
-			console.log(this.globalData.canlisten)
 			if (this.globalData.canlisten && route != 'pages/mine/tools/turnChain') {
 				getClipboard()
 			}
@@ -200,13 +201,19 @@
 						}
 					});
 				}
+				else{
+					that.globalData.hasbcinit=true;
+				}
 			},
 			getAppInfo: function() {
 				var that = this;
+				that.globalData.hasinit=true;
 				this.$u.api.comminInt({}).then(e => {
-					console.log(e)
-					if (e.code != 0) return that.$alert(e.msg)
-					that.globalData.hasinit=true;
+					if (e.code != 0) 
+					{
+						that.globalData.hasinit=false;
+						return that.$alert(e.msg)
+					}
 					that.globalData.appinfo = e.data.basic
 					utils.setCache('appInfo', e.data.basic)
 					utils.setCache('baseUrl', this.$u.http.config.baseUrl)
@@ -237,7 +244,7 @@
 						}
 					}
 					// #endif
-				}).catch(function(err) {})
+				}).catch(function(err) {that.globalData.hasinit=false;})
 				
 			},
 			

--
Gitblit v1.9.3