优化了一部分代码
This commit is contained in:
@@ -143,7 +143,7 @@ Page({
|
||||
app.globalData.ppScale.device.list = this.data.devicesList;
|
||||
if(this.data.devicesList.length === 1) {
|
||||
app.globalData.ppScale.device.connection = this.data.devicesList[0];
|
||||
wx.navigateTo({
|
||||
wx.redirectTo({
|
||||
url: "/pages/connectedDevice/connectedDevice"
|
||||
})
|
||||
} else {
|
||||
@@ -153,7 +153,7 @@ Page({
|
||||
alertText: "请选择你要使用的设备",
|
||||
success: (res) => {
|
||||
app.globalData.ppScale.device.connection = this.data.devicesList[res.tapIndex];
|
||||
wx.navigateTo({
|
||||
wx.redirectTo({
|
||||
url: "/pages/connectedDevice/connectedDevice"
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user