fix: 产品页面完善,增加空白布局与布局切换
This commit is contained in:
9
Yi.Ai.Vue3/src/layouts/LayoutBlankPage/index.vue
Normal file
9
Yi.Ai.Vue3/src/layouts/LayoutBlankPage/index.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<!-- LayoutBlankPage/index.vue -->
|
||||
<template>
|
||||
<!-- 完全空白,不包裹任何容器 -->
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* 无样式 */
|
||||
</style>
|
||||
@@ -1,6 +1,7 @@
|
||||
<!-- 主布局 -->
|
||||
<script setup lang="ts">
|
||||
import type { LayoutType } from '@/config/design';
|
||||
import LayoutBlankPage from '@/layouts/LayoutBlankPage/index.vue';
|
||||
// import { useScreenStore } from '@/hooks/useScreen';
|
||||
import LayoutVertical from '@/layouts/LayoutVertical/index.vue';
|
||||
import { useDesignStore } from '@/stores';
|
||||
@@ -8,6 +9,7 @@ import { useDesignStore } from '@/stores';
|
||||
// 这里添加布局类型
|
||||
const LayoutComponent: Record<LayoutType, Component> = {
|
||||
vertical: LayoutVertical,
|
||||
blankPage: LayoutBlankPage,
|
||||
};
|
||||
|
||||
const designStore = useDesignStore();
|
||||
|
||||
Reference in New Issue
Block a user