fix preview not work
diff --git a/src/components/BChart.vue b/src/components/BChart.vue
index f56b291..b7a00cd 100644
--- a/src/components/BChart.vue
+++ b/src/components/BChart.vue
@@ -231,6 +231,7 @@
}
const dataCnt = this.chartData.length - headerLength - 1;
const that = this;
+ const isExportingVideo = this.isExportingVideo;
function step(row) {
chart.setOption({
@@ -270,7 +271,7 @@
for (let i = 0; i < dataCnt; ++i) {
onProgress && onProgress(i, dataCnt);
// Cancled.
- if (!this.isExportingVideo) {
+ if (isExportingVideo && !this.isExportingVideo) {
chart.getZr().animation.off('frame', frameCounter);
return;
}