|
|
@@ -190,11 +190,8 @@ const handleHomeTab = ({ id, name , monitorItems}) => {
|
|
|
active.value = name;
|
|
|
childrenData.value = []
|
|
|
monitorData.value = monitorItems || []
|
|
|
- const menuItem = mainMenuArr.value.find(item =>item.name===name)
|
|
|
- if(menuItem){
|
|
|
- childrenData.value = menuItem.btnGroup
|
|
|
- checkedChildren.value = [menuItem.btnGroup[0]];
|
|
|
- }
|
|
|
+ checkedChildren.value = [] // 清空选中的值
|
|
|
+
|
|
|
emit('handleTab',{name,id, legend: menuItem?.legend, colorObj: menuItem?.colorObj})
|
|
|
// eventBus.emit("changePointType", {legend: menuItem?.legend, colorObj: menuItem?.colorObj})
|
|
|
eventBus.emit('handleTab',name)
|