Compare commits
No commits in common. "1cd18fcbefec1fa7436827ae628659044fe62740" and "8b282a468da06a668aa87fc4ecf777246a76f0de" have entirely different histories.
1cd18fcbef
...
8b282a468d
@ -172,8 +172,7 @@ export function realTimeLine(id, data,pageId) {
|
||||
),
|
||||
|
||||
]
|
||||
// var equipmentList=store.state.equipmentSelList
|
||||
var equipmentList=JSON.parse(localStorage.getItem('equipmentSelList'))
|
||||
var equipmentList=store.state.equipmentSelList
|
||||
|
||||
var list = []
|
||||
var selList={}
|
||||
@ -363,7 +362,6 @@ export function realTimeLine(id, data,pageId) {
|
||||
|
||||
}
|
||||
});
|
||||
localStorage.setItem('equipmentSelList', JSON.stringify(equipmentList))
|
||||
});
|
||||
window.addEventListener("resize", function () {
|
||||
myChart.resize();
|
||||
|
@ -197,9 +197,8 @@ export default {
|
||||
index: index + 1,
|
||||
};
|
||||
});
|
||||
if(!localStorage.getItem('equipmentSelList')){
|
||||
localStorage.setItem('equipmentSelList', JSON.stringify(res.data.data))
|
||||
// this.$store.state.equipmentSelList=res.data.data
|
||||
if(selTrue){
|
||||
this.$store.state.equipmentSelList=res.data.data
|
||||
}
|
||||
this.leftList[1].list = []
|
||||
this.leftList[2].list = []
|
||||
@ -267,7 +266,6 @@ export default {
|
||||
});
|
||||
localStorage.removeItem('token')
|
||||
localStorage.removeItem('userInfo')
|
||||
localStorage.removeItem('equipmentSelList')
|
||||
this.$router.push({ name: 'login' })
|
||||
} else {
|
||||
this.$message.error("请求出错");
|
||||
|
Loading…
x
Reference in New Issue
Block a user