59e5c23d by renchao@pashanhoo.com

style:首页增加定时器

1 parent da92e65e
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-03 17:08:05
* @LastEditTime: 2023-07-04 13:44:17
-->
<template>
<Chart :cdata="cdata" />
......@@ -21,9 +21,7 @@
Chart
},
mounted () {
this.$nextTick(() => {
this.mapViews()
})
this.timer = setInterval(() => {
this.mapViews();
}, 10000) // 10s
......
<!--
* @Description :工作台右侧表
* @Autor : miaofang
* @LastEditTime: 2023-07-03 16:54:36
* @LastEditTime: 2023-07-04 13:42:46
-->
<template>
<div class="rightcard">
......@@ -47,7 +47,7 @@
this.getdjywltotal()
this.timer = setInterval(() => {
this.getdjywltotal()
}, 5000) // 5s
}, 10000) // 10s
},
mounted () {
window.addEventListener("resize", () => {
......