diff --git a/src/views/led/led.vue b/src/views/led/led.vue index cdbf27c..4457766 100644 --- a/src/views/led/led.vue +++ b/src/views/led/led.vue @@ -135,7 +135,7 @@ export default { }).then((res) => { console.log(res); callBackMqttMessage('led', (data) => { - this.getInfoByDevice(data?.message || {}); + this.getInfoByDevice(data.message.deviceCode); }); }).catch((err) => { console.log(err) diff --git a/src/views/mealSurplusInformation/mealSurplusInformation.vue b/src/views/mealSurplusInformation/mealSurplusInformation.vue index e268a36..0a4188f 100644 --- a/src/views/mealSurplusInformation/mealSurplusInformation.vue +++ b/src/views/mealSurplusInformation/mealSurplusInformation.vue @@ -129,7 +129,7 @@ export default { var params = {}; var _this = this; - httpRequest("GET", "https://dev.yixiong-tech.com:8081/nutrition/neglect/large-screen/kitchen", params, { + httpRequest("GET", "http://dev.yixiong-tech.com:8087/nutrition/neglect/large-screen/kitchen", params, { "X-DEVICE-CODE": "XIAOMI-00999", "authorization": "57ee87183f2a4fa59683ec9ef41c8f5d" }).then(function(res) {