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