mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 19:44:50 +08:00
chore: update layout
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<LayoutLockPage />
|
||||
<BackTop v-if="getUseOpenBackTop" :target="getTarget" />
|
||||
<SettingDrawer v-if="getShowSettingButton" />
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
@@ -14,15 +13,13 @@
|
||||
components: {
|
||||
BackTop,
|
||||
LayoutLockPage: createAsyncComponent(() => import('/@/views/sys/lock/index.vue')),
|
||||
SettingDrawer: createAsyncComponent(() => import('/@/layouts/default/setting/index.vue')),
|
||||
},
|
||||
setup() {
|
||||
const { getUseOpenBackTop, getShowSettingButton } = useRootSetting();
|
||||
const { getUseOpenBackTop } = useRootSetting();
|
||||
|
||||
return {
|
||||
getTarget: () => document.body,
|
||||
getUseOpenBackTop,
|
||||
getShowSettingButton,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user