| File was renamed from src/layout/Footer.vue |
| | |
| | | {name:'event5',img:img5,activeImg:activeImg5,active:false,className:'orthophoto'}, |
| | | ]) |
| | | |
| | | // 机巢聚合 |
| | | const {init,removeAll} = useAggregation() |
| | | |
| | | const imgClick = (row) => { |
| | | const find = list.value.find(item => item.active) |
| | | if (find.name === row.name) return |
| | | const isFromEvent1 = find.name === 'event1'; |
| | | const isToEvent1 = row.name === 'event1'; |
| | | if (isFromEvent1 && !isToEvent1) removeAll(); |
| | | else if (!isFromEvent1 && isToEvent1) init(); |
| | | list.value = list.value.map(item => ({...item,active: item.name === row.name})); |
| | | row.name === 'event1' ? init() :removeAll() |
| | | } |
| | | |
| | | // 销毁前钩子 |