Index.vue 704 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <div class="tac flex-box nowrap max-box">
  3. <Right-Menu
  4. :menulist="menulist"
  5. class="minRightMenuWidth max-height"
  6. ></Right-Menu>
  7. <router-view class="minRightMenuWidth-body max-height" />
  8. </div>
  9. </template>
  10. <script>
  11. import RightMenu from "@/components/index/Rightmenu.vue";
  12. import { reactive, toRefs } from "@vue/reactivity";
  13. import { getTwolist } from "@/utils/routerrules";
  14. import { useRoute } from "vue-router";
  15. export default {
  16. components: {
  17. RightMenu,
  18. },
  19. setup() {
  20. const route = useRoute();
  21. const zbmxgl = reactive({
  22. menulist: getTwolist(route.path),
  23. });
  24. return { ...toRefs(zbmxgl) };
  25. },
  26. };
  27. </script>