From 0a24ffeb3eff074c8f11e9f94fdf2c2cb4929799 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 10 Nov 2023 13:08:29 +0800
Subject: [PATCH] fix:小程序详情修改

---
 pages/index/index.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/pages/index/index.vue b/pages/index/index.vue
index 76ce2ed..0c2d839 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -27,19 +27,20 @@
 			myInfor,
 			tabBar
 		},
-		onLoad(option) {},
+		async onLoad() {
+			await this.$onLaunched
+			this.getData()
+		},
 		onReady() {},
 		onShow() {
 			this.currIndex = '0'
 			this.showTabBar = true
 		},
-		async mounted() {
+		mounted() {
 			//������������������
-			await this.$onLaunched
 			this.token = uni.getStorageSync('tonken')
-			console.log('indextoken', this.token)
+			console.log('������������index���������', this.token)
 			this.loading = false
-			this.getData()
 			uni.$on('currIndex', data => {
 				console.log('currIndexOn', data)
 				this.currIndex = data.data.index
@@ -50,7 +51,7 @@
 		},
 		methods: {
 			getData() {
-				console.log('indextokengetContaminateList')
+				console.log('������������')
 				this.$refs.agencyPage.getContaminateList()
 			},
 			handleChangeTabe(index) {

--
Gitblit v1.8.0