<template>
  <infinity-el-menu :default-menu="store.defaultActive" :menu-list="store.leftMenuList"/>
</template>

<script>
import {computed, onBeforeMount, ref} from "vue";
import {useRootStore} from "@/pinia/useStore";
import {useRoute} from "vue-router";
import InfinityElMenu from "@/components/common/InifinityElMenu.vue";
import {getMenu} from "@/units/use-method/power-control";

export default {
  name: "MyMenu",
  components: {InfinityElMenu},
  setup() {
    const route =useRoute()
    const store = useRootStore()
    debugger
    // const currentM = computed(() => {
    //   return otherReflectArr.find(i => i.name === store.pageType).menus
    // })
    function homeCountAdd() {
      store.toHomeCounter++
    }
    onBeforeMount(()=>{
      debugger
      getMenu();
    })
    return {
      store,
      homeCountAdd,
      //otherReflectArr
    }
  }
}
</script>

<style scoped lang="scss">

</style>
