From cc20b3cfe18b36c7b0f75937f88679eb031ecc6f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 14 八月 2023 13:41:20 +0800 Subject: [PATCH] 2023-08-14 --- src/tabviews/custom/components/card/balcony/index.jsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tabviews/custom/components/card/balcony/index.jsx b/src/tabviews/custom/components/card/balcony/index.jsx index fa7d47a..a383d6d 100644 --- a/src/tabviews/custom/components/card/balcony/index.jsx +++ b/src/tabviews/custom/components/card/balcony/index.jsx @@ -144,7 +144,7 @@ if (config.wrap.datatype === 'dynamic') { if (config.timer) { this.timer = new TimerTask() - this.timer.init(config.uuid, config.timer, config.timerRepeats, () => {this.loadData(true)}) + this.timer.init(config.uuid, config.timer, config.timerRepeats, () => {this.loadData('timer')}) } this.initExec() @@ -180,7 +180,7 @@ Api.getLCacheConfig(config.uuid, config.$time).then(res => { if (!res.valid && config.setting.onload === 'true') { setTimeout(() => { - this.loadData() + this.loadData('init') }, config.setting.delay || 0) } @@ -206,7 +206,7 @@ if (config.setting.onload === 'true') { setTimeout(() => { - this.loadData() + this.loadData('init') }, config.setting.delay || 0) } } @@ -354,7 +354,7 @@ this.loadData() } - async loadData (hastimer) { + async loadData (type) { const { config, arr_field, BID, BData } = this.state if (config.wrap.datatype === 'public') { @@ -377,7 +377,7 @@ let searches = [] - if (!hastimer) { + if (type !== 'timer') { this.setState({ loading: true }) @@ -391,7 +391,7 @@ let _data = {} this.loaded = true - if (config.$cache && config.setting.onload !== 'false') { + if (config.$cache && type === 'init') { Api.writeCacheConfig(config.uuid, result.data || []) } -- Gitblit v1.8.0