提交 93b17e2f 编写于 作者: zhujiamin's avatar zhujiamin

我的地盘ion-segment 点击切换后刷新部件数据 --fix3

上级 bea8bd84
...@@ -209,13 +209,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -209,13 +209,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
this.viewState.next({ tag: panel, action: this.action, data: {}}); this.viewState.next({ tag: panel, action: this.action, data: {}});
} }
if (this.isEnableReRender) { if (this.isEnableReRender) {
if (panel == 'tabviewpanel4') { if (panel) {
let tabviewpanel:any = this.$refs.tabviewpanel; let panelarr:any = Object.keys(this.$refs);
tabviewpanel.isActivied = false; panelarr.splice(panelarr.findIndex((item:any) => item === panel), 1);
} panelarr.forEach((item:any,index:number)=>{
if (panel == 'tabviewpanel') { let tabviewpanel:any = this.$refs[item];
let tabviewpanel4:any = this.$refs.tabviewpanel4; if (tabviewpanel.isActivied) {
tabviewpanel4.isActivied = false; tabviewpanel.isActivied = false;
}
})
} }
} }
}); });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册