chore: sync changes for v0.1.1
This commit is contained in:
17
admin/apps/web-antd/src/layouts/app/site.vue
Normal file
17
admin/apps/web-antd/src/layouts/app/site.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<BasicLayout />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import BasicLayout from '#/layouts/basic.vue'
|
||||
import { updatePreferences, usePreferences } from '@vben/preferences'
|
||||
import { onMounted } from 'vue'
|
||||
|
||||
const { layout } = usePreferences()
|
||||
|
||||
onMounted(() => {
|
||||
if (layout.value !== 'sidebar-nav') {
|
||||
updatePreferences({ app: { layout: 'sidebar-nav' } })
|
||||
}
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user