wujingjing
2025-04-07 07f5e49d4031f74c296fe01bb79e913c864979e5
src/layout/main/classic.vue
@@ -5,14 +5,16 @@
</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>>();