From 6b202fcb9446a289d64dd1a36e881b688c9bb72b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 28 七月 2023 19:25:19 +0800 Subject: [PATCH] 2023-07-28 --- src/tabviews/custom/components/card/prop-card/index.jsx | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx index 3ea4c17..e22cc5b 100644 --- a/src/tabviews/custom/components/card/prop-card/index.jsx +++ b/src/tabviews/custom/components/card/prop-card/index.jsx @@ -66,7 +66,7 @@ window.GLOB.SyncData.delete(_config.dataName) } - } else if (_config.wrap.datatype === 'public' && window.GLOB.CacheData.get(_config.wrap.publicId)) { + } else if (_config.wrap.datatype === 'public' && window.GLOB.CacheData.has(_config.wrap.publicId)) { _data = window.GLOB.CacheData.get(_config.wrap.publicId) _data = fromJS(_data).toJS() this.loaded = true @@ -193,6 +193,19 @@ this.setState({data: _data}) }) + } else { + if (config.wrap.goback === 'true' && data.$$empty) { + this.timer && this.timer.stop() + + MKEmitter.emit('closeTabView', config.$pageId) + } else { + if (selected !== 'false') { + this.checkTopLine() + } else { + this.transferLine() + } + this.autoExec() + } } } else { if (!this.loaded) { @@ -260,9 +273,7 @@ } } else { if (selected !== 'false') { - setTimeout(() => { - this.checkTopLine() - }, 200) + this.checkTopLine() } if (config.$cache && config.$time && config.wrap.autoExec) { -- Gitblit v1.8.0