Procházet zdrojové kódy

连接时间修改到500ms

wzh před 2 roky
rodič
revize
d0ef9d7d56

+ 1 - 1
pages/bluetooth/index/index.vue

@@ -173,7 +173,7 @@ import i18 from '@/utils/i18.js'
               ecUI.hideLoading()
               ecUI.hideLoading()
               getPwd();
               getPwd();
               self.buleid = id;
               self.buleid = id;
-            },2000)
+            },500)
             // uni.setStorageSync('blueid', id);
             // uni.setStorageSync('blueid', id);
 						// ecBLE.stopBluetoothDevicesDiscovery();
 						// ecBLE.stopBluetoothDevicesDiscovery();
             //
             //

+ 1 - 0
pages/weitiandi/bluetooth/status.vue

@@ -288,6 +288,7 @@ export default {
         }else {
         }else {
           setPwd(this.pwd);
           setPwd(this.pwd);
           this.oldPwd = this.pwd;
           this.oldPwd = this.pwd;
+          uni.setStorageSync(this.pwd);
           this.$modal.showToast("密码修改成功");
           this.$modal.showToast("密码修改成功");
           this.showPwd = false;
           this.showPwd = false;
           this.showInitPwd = false;
           this.showInitPwd = false;