- 删除根目录中重复的 NestJS 配置文件 - 删除 tsconfig.json, tsconfig.build.json, eslint.config.mjs, .prettierrc - 保留 wwjcloud-nest/ 目录中的完整配置 - 避免配置冲突,确保项目结构清晰
72 lines
1.6 KiB
Vue
72 lines
1.6 KiB
Vue
<template>
|
|
<el-aside class="layout-aside dark w-auto">
|
|
<side class="hidden-xs-only slide" />
|
|
</el-aside>
|
|
|
|
<el-drawer v-model="systemStore.menuDrawer" direction="ltr" :with-header="false" custom-class="aside-drawer" size="210px">
|
|
<template #default>
|
|
<side />
|
|
</template>
|
|
</el-drawer>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { watch, computed } from 'vue'
|
|
import { useRoute } from 'vue-router'
|
|
import side from './side.vue'
|
|
import useSystemStore from '@/stores/modules/system'
|
|
|
|
const systemStore = useSystemStore()
|
|
const dark = computed(() => {
|
|
return systemStore.dark
|
|
})
|
|
|
|
const route = useRoute()
|
|
watch(route, () => {
|
|
systemStore.$patch(state => {
|
|
state.menuDrawer = false
|
|
})
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.layout-aside {
|
|
--side-dark-color: #141414;
|
|
background-color: var(--side-dark-color, var(--el-bg-color));
|
|
|
|
&.bright {
|
|
background-color: #F5F7F9;
|
|
|
|
li {
|
|
background-color: #F5F7F9;
|
|
|
|
&.is-active:not(.is-opened) {
|
|
position: relative;
|
|
color: #333;
|
|
background-color: #fff;
|
|
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 2px;
|
|
background-color: var(--el-menu-active-color);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.slide {
|
|
border-right: 1px solid var(--el-border-color-extra-light);
|
|
}
|
|
}
|
|
|
|
.aside-drawer {
|
|
.el-drawer__body {
|
|
padding: 0 !important;
|
|
}
|
|
}
|
|
</style>
|