12345678910111213141516171819202122232425262728293031323334353637 |
- <template>
- <div class="tac flex-box nowrap max-box">
- <Right-Menu
- :menulist="menulist"
- class="minRightMenuWidth max-height"
- v-if="$route.path != '/ghjcpgyj/jkzhdp'"
- ></Right-Menu>
- <router-view
- class="max-height"
- :class="
- $route.path != '/ghjcpgyj/jkzhdp'
- ? 'minRightMenuWidth-body'
- : 'max-width'
- "
- />
- </div>
- </template>
- <script>
- import RightMenu from "@/components/index/Rightmenu.vue";
- import { reactive, toRefs } from "@vue/reactivity";
- import { getTwolist } from "@/utils/routerrules";
- import { useRoute } from "vue-router";
- export default {
- components: {
- RightMenu,
- },
- setup() {
- const route = useRoute();
- const ghjcpgyj = reactive({
- menulist: getTwolist(route.path),
- });
- return { ...toRefs(ghjcpgyj) };
- },
- };
- </script>
|