This commit is contained in:
duanliang
2025-04-23 08:19:30 +08:00
parent df98711a38
commit 55ca8b0e74
3 changed files with 12 additions and 2 deletions

View File

@@ -116,13 +116,21 @@
let res = await getHotNewApi()
hotNewList.value = res.data
}
let timer = null
onMounted(() => {
getStop()
getHotNew()
getTotal()
getState()
timer = setInterval(()=>{
getState()
},2000)
getLineChart()
})
onUnmounted(() => {
if (timer) clearInterval(timer)
})
</script>
<style scoped lang="scss">