From b77e8e776af4d81e748e9e21d51b64a11085a195 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期四, 19 十二月 2024 10:49:11 +0800
Subject: [PATCH] 未提交退出提示

---
 packageBookService/pages/psychologyAnswer/questionList/index.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/packageBookService/pages/psychologyAnswer/questionList/index.js b/packageBookService/pages/psychologyAnswer/questionList/index.js
index 95e115a..a9e9ee6 100644
--- a/packageBookService/pages/psychologyAnswer/questionList/index.js
+++ b/packageBookService/pages/psychologyAnswer/questionList/index.js
@@ -69,12 +69,12 @@
   ready() {
     const query = wx.createSelectorQuery().in(this);
     query.select('#question-title').boundingClientRect((rect) => {
-      this.setData({
-        height: 'calc(100% - 30px - ' + rect.height + 'px)'
-      })
+      if (rect) {
+        this.setData({
+          height: 'calc(100% - 30px - ' + rect.height + 'px)'
+        })
+      }
     }).exec();
-
-
   },
 
 

--
Gitblit v1.9.1