| | |
| | | </template> |
| | | |
| | | <script setup lang="ts" name="layoutClassic"> |
| | | import { defineAsyncComponent, computed, ref, watch, nextTick, onMounted } from 'vue'; |
| | | import { useRoute } from 'vue-router'; |
| | | import { storeToRefs } from 'pinia'; |
| | | import { computed, defineAsyncComponent, nextTick, onMounted, ref, watch } from 'vue'; |
| | | import { useRoute } from 'vue-router'; |
| | | import { useThemeConfig } from '/@/stores/themeConfig'; |
| | | |
| | | // 引入组件 |
| | | |
| | | const LayoutMain = defineAsyncComponent(() => import('/@/layout/component/main.vue')); |
| | | const LayoutMain = defineAsyncComponent(async () => { |
| | | return import('/@/layout/component/main.vue'); |
| | | }); |
| | | |
| | | // 定义变量内容 |
| | | const layoutMainRef = ref<InstanceType<typeof LayoutMain>>(); |