From 73393bacf16a3ab018f0688b89ca58984ddbbd70 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 25 七月 2024 15:24:50 +0800
Subject: [PATCH] ''

---
 wechat_staff/pages/index/index.js |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/wechat_staff/pages/index/index.js b/wechat_staff/pages/index/index.js
index c512978..a1118ce 100644
--- a/wechat_staff/pages/index/index.js
+++ b/wechat_staff/pages/index/index.js
@@ -30,12 +30,11 @@
   onLoad() {
     const res = wx.getMenuButtonBoundingClientRect()
     this.setData({
-      clientHeight: res.height
-    })
-    this.setData({
+      clientHeight: res.height,
       clientTop: res.top
     })
-
+  },
+  onShow() {
     this.initData()
   },
   initData() {

--
Gitblit v1.9.3