fix: 后端接口对接,问题修复。

This commit is contained in:
tianyongbao
2026-01-12 18:48:03 +08:00
parent 2e9609292e
commit 6d1a6ded2d
8 changed files with 281 additions and 55 deletions

View File

@@ -480,7 +480,8 @@ function getDeviceList() {
}
// 设备列表
function getDevicesList() {
allDeviceList({ type: 1 }).then((res: any) => {
const userId = Taro.getStorageSync("UserId");
allDeviceList({ type: 1,rootUserId:userId }).then((res: any) => {
if (res.code == 200) {
res.data.forEach((r: any) => {
r.open = true;