422
This commit is contained in:
@@ -107,8 +107,9 @@
|
||||
watch(
|
||||
() => props.dataList,
|
||||
(newVal) => {
|
||||
console.log(chartVal.value,newVal,'newValnewValnewValnewValnewVal')
|
||||
|
||||
aIndex+=1
|
||||
|
||||
if(aIndex>=3&&!newVal.length){
|
||||
condShow.value = 1
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
condShow.value = 1
|
||||
}
|
||||
if (val.length > 0) {
|
||||
condShow.value = 2
|
||||
setTimeout(() => {
|
||||
init()
|
||||
}, 1000)
|
||||
|
||||
@@ -116,13 +116,21 @@
|
||||
let res = await getHotNewApi()
|
||||
hotNewList.value = res.data
|
||||
}
|
||||
let timer = null
|
||||
onMounted(() => {
|
||||
getStop()
|
||||
getHotNew()
|
||||
getTotal()
|
||||
timer = setInterval(()=>{
|
||||
getState()
|
||||
},2000)
|
||||
|
||||
getLineChart()
|
||||
})
|
||||
onUnmounted(() => {
|
||||
|
||||
if (timer) clearInterval(timer)
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user