diff --git a/www/src/App.vue b/www/src/App.vue index 95c7c28..d27dead 100644 --- a/www/src/App.vue +++ b/www/src/App.vue @@ -19,25 +19,4 @@ html, body { height: 100% } -.el-header, .el-footer { - background-color: #B3C0D1; - color: #333; - text-align: center; - line-height: 60px; -} - -.el-aside { - background-color: #073d7a; - color: rgb(250, 245, 245); - /* padding-left:10px; */ - /* text-align: center; - line-height: 200px; */ -} - -.el-main { - color: #333; - text-align: center; - /* line-height: 160px; */ - padding: 0; -} diff --git a/www/src/components/HeaderContent.vue b/www/src/components/HeaderContent.vue index be2ebd9..0cf2ebf 100644 --- a/www/src/components/HeaderContent.vue +++ b/www/src/components/HeaderContent.vue @@ -1,17 +1,26 @@ @@ -21,11 +30,19 @@ import {useRouter} from 'vue-router' import {useStore} from '@/stores' import {computed} from 'vue' + import {Expand, Fold} from '@element-plus/icons-vue' + import {useCollapseStore} from '@/stores/collapse.js' + const collapseStore = useCollapseStore() const store = useStore() const userName = computed(() => store.name) const router = useRouter() + function handleCollapse() { + console.log(collapseStore.collapse) + collapseStore.collapse = !collapseStore.collapse + } + function handleCommand(command) { if (command === 'logout') { logOut() diff --git a/www/src/components/MenuList.vue b/www/src/components/MenuList.vue index 1da1221..c0353e9 100644 --- a/www/src/components/MenuList.vue +++ b/www/src/components/MenuList.vue @@ -1,10 +1,16 @@