修改报警请求间隔

master
夜笙歌 2 years ago
parent 9ca2e1613e
commit 71146bb034

@ -15,6 +15,7 @@ onMounted(() => {
})
})
const userStore = useUserStore()
console.log(userStore.name)
const getWebsocket = () => {
let websocket = new WebSocket("ws://10.11.41.249:8080/websocket/message/" + userStore.name)
websocket.onopen = function (event) {

@ -245,6 +245,9 @@ export default {
// domParent.scrollTop += 100
})
setInterval(()=>{
this.setInfo()
},6*1000*1000)
// })
},
beforeDestroy() {
@ -257,8 +260,7 @@ export default {
methods: {
async setInfo() {
await getIndexdata().then(response => {
// console.log(response)
this.warringWaitList = [...response.data.warringList, ...response.data.warringList, ...response.data.warringList],
this.warringWaitList = [...response.data.warringList],
this.carData = {
carBindGps: response.data.carBindGps,
carTotal: response.data.carTotal,

Loading…
Cancel
Save