Commit 755a92222b4ee60f2907137ab3fe8d94cc0c3a2a
1 parent
6c60d600
perf: index loading effect duration update 1000 ms
Showing
1 changed file
with
6 additions
and
2 deletions
@@ -590,7 +590,11 @@ | @@ -590,7 +590,11 @@ | ||
590 | </div> | 590 | </div> |
591 | <script> | 591 | <script> |
592 | var timeInterval = setInterval(() => { | 592 | var timeInterval = setInterval(() => { |
593 | - if (!echarts) return | 593 | + try { |
594 | + if (!echarts) return | ||
595 | + } catch (error) { | ||
596 | + | ||
597 | + } | ||
594 | clearInterval(timeInterval) | 598 | clearInterval(timeInterval) |
595 | timeInterval = null | 599 | timeInterval = null |
596 | var chartDom | 600 | var chartDom |
@@ -622,7 +626,7 @@ | @@ -622,7 +626,7 @@ | ||
622 | lineWidth: 1 | 626 | lineWidth: 1 |
623 | }, | 627 | }, |
624 | keyframeAnimation: { | 628 | keyframeAnimation: { |
625 | - duration: 3000, | 629 | + duration: 1000, |
626 | loop: true, | 630 | loop: true, |
627 | keyframes: [ | 631 | keyframes: [ |
628 | { | 632 | { |