Commit a164207a authored by tangfh's avatar tangfh

+

parent 9e2f1536
......@@ -195,13 +195,11 @@
onTabChange(e) {
let index = e.target.current || e.detail.current;
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;
}
var tab = this.tabBars[this.tabIndex];
setTimeout(() => {
tab.content.refreshing = true;
}, 35)
this.refresh();
},
switchTab(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