Commit c8339dda authored by leon's avatar leon

fix: tab components refresh

parent f3f00306
......@@ -147,7 +147,7 @@
/**
* 改变选项卡的值
*/
tabsValueChange() {
tabsValueChange() {
const {
index,
paramName,
......@@ -185,8 +185,8 @@
},
watch: {
'elementInfo.child.index': {
handler(newVal) {
if (newVal.length) this.tabsValueChange()
handler(newVal) {
this.tabsValueChange()
},
immediate: true
}
......
......@@ -187,11 +187,11 @@
* 递归 - 隐藏子项为NormalTabs的所有关联组件
*/
childrenDataHide(item) {
if(item.type === 'NormalTabs') {
if(item.type === 'NormalTabs') {
if(!item.child.data.length) {
return
}
item.child.data.forEach(data => {
}
item.child.data.forEach(data => {
this.reportInfo.list.map(item => {
if(data.comp === item.id) {
item.hide = true
......@@ -199,8 +199,8 @@
}
return item
})
})
}
})
}
},
//检查是否登录
userAuthCheck() {
......
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