4.17websocket调试成功
parent
d9d7f0ed8e
commit
8c6d65631a
|
@ -387,18 +387,13 @@
|
|||
*/
|
||||
getWarningPicture(warningData) {
|
||||
// warningData为数组说明是初始化数据,为对象说明是ws推送的数据
|
||||
|
||||
if (this.warningList.length === 4) {
|
||||
this.warningList.pop()
|
||||
this.warningList.unshift(warningData)
|
||||
} else {
|
||||
console.log("this warningDAta")
|
||||
console.log(warningData)
|
||||
this.warningList = warningData
|
||||
// this.warningList.unshift(warningData)
|
||||
//this.warningList.unshift(warningData)
|
||||
console.log("this warningList")
|
||||
console.log(this.warningList)
|
||||
}
|
||||
|
||||
// 声音 和 tips预警
|
||||
let warningType = this.$refs.notice
|
||||
warningType.play()
|
||||
|
|
Loading…
Reference in New Issue