From d363cff9c24109497adef1a2797eae0ff4408257 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 09 八月 2024 09:24:40 +0800
Subject: [PATCH] ll

---
 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