兼容 新老版本

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
@@ -84,7 +84,8 @@ Page({
} else {
ppScale.device.name = this.data.device.name;
ppScale.device.connection = this.data.device;
ppScale.version = this.data.device.name.includes("YX") ? "domain2" : "domain1";
const nameArr = this.data.device.name.split("-");
ppScale.version = nameArr.length === 5 ? "domain2" : "domain1";
if(this.data.progressNext) {
let scaleDeviceId = ppScale.device.mac.replace(/:/g, '');
let params = {