From 88a3543ebbbef086a01d3f3300546ffa01222eef Mon Sep 17 00:00:00 2001 From: anyongjin Date: Wed, 11 Dec 2024 15:57:24 +0800 Subject: [PATCH] fix repeat loading --- .gitignore | 2 +- src/lib/chart.svelte | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6e46fad..a53a12c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ yarn-error.log .svelte-kit .vscode - +dist.zip node_modules diff --git a/src/lib/chart.svelte b/src/lib/chart.svelte index 3e549d3..b639e30 100644 --- a/src/lib/chart.svelte +++ b/src/lib/chart.svelte @@ -96,6 +96,7 @@ }) let chartObj = $chart!; chartObj.setLoadMoreDataCallback(({type, data, callback}) => { + if($ctx.loadingKLine)return $ctx.loadingKLine = true let from = 0, to = 0; if (!!data){