Index.vue 879 B

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