| | |
| | | /> |
| | | </div> |
| | | <div class="menu_second"> |
| | | <div class="upTop"> |
| | | <div |
| | | class="upTop" |
| | | v-show="item.children &&item.children.length>0 " |
| | | > |
| | | <div class="upimg"></div> |
| | | </div> |
| | | <div class="second_Box"> |
| | |
| | | const menuFlag = ref(null); |
| | | const menuOptions = ref([]); |
| | | const checkFlag = ref(null); |
| | | let checkArr = ref([]); |
| | | const setMenuClick = (res) => { |
| | | if (res.children) { |
| | | if (menuFlag.value && menuFlag.value == res.id) { |
| | |
| | | } else { |
| | | if (res.level == 1) { |
| | | checkFlag.value = null; |
| | | // console.log(res); |
| | | if (res.name == "清除") { |
| | | menuTool.clearALL(res); |
| | | } |
| | | } else if (res.level == 2) { |
| | | checkFlag.value = res.id; |
| | | checkArr.value.push(res.id); |
| | | } |
| | | menuFlag.value = null; |
| | | menuTool.topTools(res); |