[AI Generated]: fix(*): 优化配网协议版本自动判断,改由configWifi内部根据modelNumber决定domain版本
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { lefuService } from '../../lefu/index'
|
||||
import type { LeFuWifiItem, WifiVersion } from '../../lefu/index'
|
||||
import type { LeFuWifiItem } from '../../lefu/index'
|
||||
|
||||
interface WifiItem {
|
||||
ssid: string
|
||||
@@ -10,7 +10,6 @@ type WifiStatus = 'idle' | 'searching' | 'list' | 'empty' | 'password' | 'config
|
||||
type BleStatus = 'connected' | 'failed' | 'connecting'
|
||||
|
||||
Page({
|
||||
_wifiVersion: 'domain2' as WifiVersion,
|
||||
|
||||
data: {
|
||||
status: 'idle' as WifiStatus,
|
||||
@@ -107,7 +106,7 @@ Page({
|
||||
if (!selectedSsid) return
|
||||
this.setData({ status: 'configuring' })
|
||||
wx.showLoading({ title: '正在配网...', mask: true })
|
||||
lefuService.configWifi(selectedSsid, selectWifiPWD, this._wifiVersion)
|
||||
lefuService.configWifi(selectedSsid, selectWifiPWD)
|
||||
.then(() => {
|
||||
wx.hideLoading()
|
||||
this.setData({
|
||||
|
||||
Reference in New Issue
Block a user