兼容 新老版本

This commit is contained in:
17792275749
2025-12-03 15:07:38 +08:00
parent efa959d6d3
commit 21e69f06c3
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ Page({
app.globalData.ppScale.device.name = this.data.device.name;
app.globalData.ppScale.device.connection = this.data.device;
app.globalData.ppScale.version = this.data.device.name.includes("YX") ? "domain2" : "domain1";
const nameArr = this.data.device.name.split("-");
app.globalData.ppScale.version = nameArr.length === 5 ? "domain2" : "domain1";
wx.hideLoading();
this.selectComponent('#replaceNetwork1Component').getWiFiList();