Compare commits

..

No commits in common. "1cd18fcbefec1fa7436827ae628659044fe62740" and "8b282a468da06a668aa87fc4ecf777246a76f0de" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View File

@ -172,8 +172,7 @@ export function realTimeLine(id, data,pageId) {
), ),
] ]
// var equipmentList=store.state.equipmentSelList var equipmentList=store.state.equipmentSelList
var equipmentList=JSON.parse(localStorage.getItem('equipmentSelList'))
var list = [] var list = []
var selList={} var selList={}
@ -363,7 +362,6 @@ export function realTimeLine(id, data,pageId) {
} }
}); });
localStorage.setItem('equipmentSelList', JSON.stringify(equipmentList))
}); });
window.addEventListener("resize", function () { window.addEventListener("resize", function () {
myChart.resize(); myChart.resize();

View File

@ -197,9 +197,8 @@ export default {
index: index + 1, index: index + 1,
}; };
}); });
if(!localStorage.getItem('equipmentSelList')){ if(selTrue){
localStorage.setItem('equipmentSelList', JSON.stringify(res.data.data)) this.$store.state.equipmentSelList=res.data.data
// this.$store.state.equipmentSelList=res.data.data
} }
this.leftList[1].list = [] this.leftList[1].list = []
this.leftList[2].list = [] this.leftList[2].list = []
@ -267,7 +266,6 @@ export default {
}); });
localStorage.removeItem('token') localStorage.removeItem('token')
localStorage.removeItem('userInfo') localStorage.removeItem('userInfo')
localStorage.removeItem('equipmentSelList')
this.$router.push({ name: 'login' }) this.$router.push({ name: 'login' })
} else { } else {
this.$message.error("请求出错"); this.$message.error("请求出错");