diff --git a/ruoyi-ui/src/App.vue b/ruoyi-ui/src/App.vue index f517511..c52590d 100644 --- a/ruoyi-ui/src/App.vue +++ b/ruoyi-ui/src/App.vue @@ -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) { diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index 53b2e8d..7856b41 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -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,