Explorar o código

连接时间修改到500ms

wzh %!s(int64=2) %!d(string=hai) anos
pai
achega
d0ef9d7d56
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 1
      pages/bluetooth/index/index.vue
  2. 1 0
      pages/weitiandi/bluetooth/status.vue

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

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

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

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