From 89e7ed902461f28d6a7dd3e6c927eaf40b154f5e Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 15 八月 2024 10:12:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 wechat_staff/pages/kefu/select.js |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/wechat_staff/pages/kefu/select.js b/wechat_staff/pages/kefu/select.js
index f73eda1..9fcf601 100644
--- a/wechat_staff/pages/kefu/select.js
+++ b/wechat_staff/pages/kefu/select.js
@@ -41,7 +41,7 @@
       customer
     } = this.data
     const enjoyList = wx.getStorageSync('enjoyList') || []
-    if (!customer.userId) return wx.showToast({
+    if (!customer.customerId) return wx.showToast({
       title: '璇峰厛閫夋嫨瑕佸叧鑱旂殑瀹㈡埛',
       icon: 'none'
     })
@@ -58,21 +58,19 @@
             icon: 'none'
           })
         }, 500)
+        this.setData({
+          customer: {},
+          total: 0,
+          dataList: [],
+          page: 1
+        })
+        this.getList()
       }else{
         return wx.showToast({
           title: res.message,
           icon: 'none'
         })
       }
-      this.setData({
-        customer: {}
-      })
-      this.setData({
-        total: 0,
-        dataList: [],
-        page: 1
-      })
-      this.getList()
     })
   },
   tabsClick(e) {

--
Gitblit v1.9.3