From 008e177f771ad8f6bfd0f944ed56bb4d0d71502a Mon Sep 17 00:00:00 2001 From: h7ml Date: Thu, 16 Jun 2022 11:35:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8=E4=BC=A0?= =?UTF-8?q?=E5=8F=82deviceid=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/DeviceCloud/manage/js/devicesDetailLite.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/DeviceCloud/manage/js/devicesDetailLite.js b/src/views/DeviceCloud/manage/js/devicesDetailLite.js index 06861e9aa7..60e5faae4e 100644 --- a/src/views/DeviceCloud/manage/js/devicesDetailLite.js +++ b/src/views/DeviceCloud/manage/js/devicesDetailLite.js @@ -417,7 +417,7 @@ export default { this.topicKey = this.$dgiotBus.topicKey(this.router, this.subtopic) // dgiot-mqtt topicKey 唯一标识 // if (this.$route.query.deviceid) { this.deviceid = this.$route.query.deviceid - localStorage.setItem('parse_objectid', deviceid) + localStorage.setItem('parse_objectid', this.deviceid) this.subRealtimedata() this.initChart() window.addEventListener('resize', this.resizeTheChart) @@ -843,7 +843,7 @@ export default { }, CardDevice() { this.loading = true - getCardDevice(this.deviceid) + getCardDevice(this.$route.query.deviceid) .then((response) => { if (response?.data) { this.renderCard(response.data) @@ -939,7 +939,7 @@ export default { await this.delVisitedRoute(this.$route.path) this.activeName = 'first' this.$router.push({ path: this.$route.path, query }) - this.getDeviceInfo(deviceid) + this.getDeviceInfo(query.deviceid) this.setTreeFlag(false) this.params.style = this.chartType[0].type console.log(' this.params.style', this.params.style) @@ -947,7 +947,7 @@ export default { this.router = this.$dgiotBus.router(location.href + this.$route.fullPath) // this.topicKey = this.$dgiotBus.topicKey(this.router, this.subtopic) // dgiot-mqtt topicKey 唯一标识 // if (this.$route.query.deviceid) { - this.deviceid = deviceid + this.deviceid = query.deviceid this.subRealtimedata() this.initChart() window.addEventListener('resize', this.resizeTheChart)