Commit a164207a authored by tangfh's avatar tangfh

+

parent 9e2f1536
...@@ -195,13 +195,11 @@ ...@@ -195,13 +195,11 @@
onTabChange(e) { onTabChange(e) {
let index = e.target.current || e.detail.current; let index = e.target.current || e.detail.current;
this.switchTab(index); this.switchTab(index);
if (this.tabBars[index].content.list.length > 0) { let tab = this.tabBars[index];
if (tab.content.list.length > 0 || !tab.content.refreshFlag) {
return; return;
} }
var tab = this.tabBars[this.tabIndex]; this.refresh();
setTimeout(() => {
tab.content.refreshing = true;
}, 35)
}, },
switchTab(index) { switchTab(index) {
if (this.tabIndex === index) { if (this.tabIndex === index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment