From db695f53b4eb645f134fd4f019f1c530bd2973e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=96=87=E8=BD=A9?= <12812285557@qq.com> Date: Thu, 18 Aug 2022 17:31:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=BB=E9=99=A4=E7=9B=91?= =?UTF-8?q?=E5=90=AC=E7=9A=84=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart b/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart index 506e348..3a5f45c 100755 --- a/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart +++ b/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart @@ -127,24 +127,18 @@ class _ChatKFPageState extends State print('发生改变!!!!!!!!!!'); print('customGoods'+customGoods); print('BytedeskUtils.goodsInfo.value'+BytedeskUtils.goodsInfo.value); - if(customGoods==BytedeskUtils.goodsInfo.value) - return; customGoods = BytedeskUtils.goodsInfo.value; print('BytedeskUtils.goodsInfo.value'+BytedeskUtils.goodsInfo.value); - _goodsSubmitted(); } @override void initState() { - BytedeskUtils.goodsInfo.addListener(() { - - submit; - - - }); + BytedeskUtils.goodsInfo.addListener( + submit + ); if(widget.btnBack==null){ @@ -1555,7 +1549,7 @@ class _ChatKFPageState extends State _debounce?.cancel(); _loadHistoryTimer?.cancel(); _resendTimer?.cancel(); - BytedeskUtils.goodsInfo.removeListener(() { submit;}); + BytedeskUtils.goodsInfo.removeListener( submit); // bytedeskEventBus.destroy(); // FIXME: 只能取消监听,不能destroy super.dispose(); }