Commit 18636750 by 周田

mod

parent 4ea33bdd
......@@ -294,14 +294,6 @@ const sendCmd = () => {
// 发送命令
const obj = deviceNameMap.get(formData.deviceName)
console.log(
{
station_id: obj.sta_id,
device_id: obj.dev_id,
cmd_name: formData.cmdName,
fields: formData.fields
})
axios.post('/api/mqtt/publish/',
{
station_id: obj.sta_id,
......@@ -309,9 +301,6 @@ const sendCmd = () => {
cmd_name: formData.cmdName,
fields: formData.fields
})
.then((res) => {
console.log(res);
})
.catch((err) => {
console.log(err);
})
......
......@@ -43,8 +43,6 @@ onMounted(() => {
// console.log(e.data);
let data = JSON.parse(e.data).message
for (const [key, value] of Object.entries(data[0] as Record<string, string>)) {
console.log(key, value);
if (tableTitles.value.indexOf(key) !== -1) {
tableData.value[0][key] = value
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment