422
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user