兼容 新老版本
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user