diff --git a/src/views/page/realTime.vue b/src/views/page/realTime.vue index d3960935..09988ede 100644 --- a/src/views/page/realTime.vue +++ b/src/views/page/realTime.vue @@ -749,6 +749,9 @@ export default { this.deviceName = store.equipmentList[this.indexs - 1].deviceName this.deviceState = store.equipmentList[this.indexs - 1].deviceState clearInterval(this.statusInterval) && this.statusInterval + this.inputData = []; + this.list = [] + this.updateTime='' this.nowDevicestatus=[] setTimeout(() => { @@ -1172,6 +1175,8 @@ export default { if(res.data.code==200){ this.typeSelList=res.data.data + }else{ + this.typeSelList=[] } }) var list = store.typeList @@ -1224,6 +1229,8 @@ export default { }) }) } else { + this.inputData = []; + this.list = [] // this.$message.error(res.data.msg); } }); @@ -1234,6 +1241,7 @@ export default { var chartsData = res.data.data realTimeLine('realTime-line', chartsData, data1) } else { + var chartsData = [] // this.$message.error(res.data.msg); } }) @@ -1306,6 +1314,8 @@ export default { }) }) } else { + this.inputData = []; + this.list = [] // this.$message.error(res.data.msg); } }); @@ -1349,6 +1359,7 @@ export default { var chartsData = res.data.data realTimeLine('realTime-line', chartsData, data1) } else { + var chartsData = [] // this.$message.error(res.data.msg); } }) @@ -1436,6 +1447,8 @@ export default { var chartsData = res.data.data realTimeLine('realTime-line', chartsData, equipmentId) }) + }else{ + } }) @@ -1497,6 +1510,8 @@ export default { }) } else { // this.$message.error(res.data.msg); + this.inputData =[]; + this.list = [] } }); var data1 = store.equipmentList[this.indexs - 1].deviceId diff --git a/vue.config.js b/vue.config.js index 632784a1..acb26011 100644 --- a/vue.config.js +++ b/vue.config.js @@ -44,9 +44,9 @@ module.exports = { }, proxy: { "/api": { - // target: 'https://api.lihe-control.com', //地址 + target: 'https://api.lihe-control.com', //地址 // target: 'http://jiaxingtest.a1.luyouxia.net:21114', //地址 - target: 'http://jiaxingtest.a1.luyouxia.net:25762', //地址 + // target: 'http://jiaxingtest.a1.luyouxia.net:25762', //地址 changeOrigin: true, pathRewrite: { "^/api": "",