Parcourir la source

feature: 处理搜索配网退出界面停止搜索

332777428@qq.com il y a 2 mois
Parent
commit
ce979d8e75
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      pages/pageB/deviceConnect2/deviceConnect2.js

+ 2 - 0
pages/pageB/deviceConnect2/deviceConnect2.js

@@ -243,6 +243,8 @@ Page({
 
   onUnload: function () {
     var that = this;
+    // 停止搜索
+    that.stopSearch();
     xBlufi.listenDeviceMsgEvent(false, that.funListenDeviceMsgEvent);
   },
 })