|
@@ -90,11 +90,11 @@
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
// const contentChart = document.querySelector('.echarts.chart') as HTMLDivElement;
|
|
// const contentChart = document.querySelector('.echarts.chart') as HTMLDivElement;
|
|
|
// titleLeft.value = contentChart?.offsetWidth * 0.3 + 'px';
|
|
// titleLeft.value = contentChart?.offsetWidth * 0.3 + 'px';
|
|
|
- if (myChart.value) startAutoPlay();
|
|
|
|
|
|
|
+ if (myChart.value !== null) startAutoPlay();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
onUnmounted(() => {
|
|
|
- stopAutoPlay();
|
|
|
|
|
|
|
+ if (myChart.value !== null) stopAutoPlay();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
function startAutoPlay() {
|
|
function startAutoPlay() {
|