From 0e20fc793b0ec10d5f9fb5b03a15883bdea5a394 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Thu, 5 Sep 2024 18:10:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9k=E7=BA=BF=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E4=B8=80=E7=9B=B4=E5=8A=A0=E8=BD=BD=E6=95=B0=E6=8D=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/option/kline.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/option/kline.vue b/src/views/option/kline.vue index 70264a6..ecac34d 100644 --- a/src/views/option/kline.vue +++ b/src/views/option/kline.vue @@ -240,13 +240,13 @@ methods: { ) { // handleClick this.page[this.symbol] = this.page[this.symbol] || 1; - let page = this.page[this.symbol] > 3 ? 3 : this.page[this.symbol]; + let page = this.page[this.symbol] > 50 ? 50 : this.page[this.symbol]; let data = { symbol: this.ajaxTv.getSymbol(symbolInfo.name), period: this.resolution(resolution), form: rangeStartDate, to: rangeEndDate, - size: page * 200, + size: page * 400, zip: 1, }; @@ -268,14 +268,14 @@ methods: { this.timer = resolution; this.ajaxTv.getKline(data).then((res) => { let arr = this.unzip(res.data).map((item) => { - return this.getMap(item); + return this.getMap(item); }); this.page[this.symbol]++; onLoadedCallback(arr); setTimeout(() => { - if (this.page[this.symbol] > 3) { - onLoadedCallback([]); - } + if (this.page[this.symbol] > 50) { + onLoadedCallback([]); + } }, 60); }); // 发送消息