|
|
@ -1,10 +1,12 @@ |
|
|
import { defineComponent } from 'vue'; |
|
|
import { defineComponent } from 'vue'; |
|
|
// import { Layout } from 'ant-design-vue';
|
|
|
import { Layout } from 'ant-design-vue'; |
|
|
|
|
|
import { RouterView } from 'vue-router'; |
|
|
|
|
|
|
|
|
// hooks
|
|
|
// hooks
|
|
|
|
|
|
|
|
|
import { ContentEnum } from '/@/enums/appEnum'; |
|
|
import { ContentEnum } from '/@/enums/appEnum'; |
|
|
import { appStore } from '/@/store/modules/app'; |
|
|
import { appStore } from '/@/store/modules/app'; |
|
|
import PageLayout from '/@/layouts/page/index'; |
|
|
// import PageLayout from '/@/layouts/page/index';
|
|
|
export default defineComponent({ |
|
|
export default defineComponent({ |
|
|
name: 'DefaultLayoutContent', |
|
|
name: 'DefaultLayoutContent', |
|
|
setup() { |
|
|
setup() { |
|
|
@ -13,9 +15,10 @@ export default defineComponent({ |
|
|
const { contentMode } = getProjectConfig; |
|
|
const { contentMode } = getProjectConfig; |
|
|
const wrapClass = contentMode === ContentEnum.FULL ? 'full' : 'fixed'; |
|
|
const wrapClass = contentMode === ContentEnum.FULL ? 'full' : 'fixed'; |
|
|
return ( |
|
|
return ( |
|
|
// <Layout.Content class={`layout-content ${wrapClass} `}>
|
|
|
<Layout.Content class={`layout-content ${wrapClass} `}> |
|
|
<PageLayout class={`layout-content ${wrapClass} `} /> |
|
|
{() => <RouterView />} |
|
|
// </Layout.Content>
|
|
|
{/* <PageLayout class={`layout-content ${wrapClass} `} /> */} |
|
|
|
|
|
</Layout.Content> |
|
|
); |
|
|
); |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|