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

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

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