添加两个接口,初始化界面设备控制界面

This commit is contained in:
WindowBird 2025-10-13 18:01:47 +08:00
parent b43cdc6ccb
commit e9154239e4
3 changed files with 38 additions and 0 deletions

View File

@ -20,3 +20,21 @@ export function bstDevice(data) {
},
});
}
export function sendCommand(data) {
return request({
url: "/app/memorial/sendCommand",
method: "POST",
data: data,
});
}
export function getDeviceData(mac) {
return request({
url: "/app/memorial/getDeviceData",
method: "GET",
params: {
mac: mac,
},
});
}

View File

@ -0,0 +1,13 @@
<template>
<view class="">
</view>
</template>
<script setup>
</script>
<style lang="scss" scoped>
</style>

View File

@ -282,6 +282,13 @@
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "deviceControl/deviceControl",
"style" :
{
"navigationBarTitleText" : ""
}
}
]
}