This commit is contained in:
妖姐 2024-01-27 13:37:22 +08:00
parent e413e3d902
commit 1e01d15b33
3 changed files with 12 additions and 7 deletions

View File

@ -16,6 +16,7 @@
import { h, reactive } from 'vue';
import { MailOutlined, AppstoreOutlined, SettingOutlined } from '@ant-design/icons-vue';
import { useRoute, useRouter } from 'vue-router';
const router = useRouter();
function getItem(label, key, icon, children, type) {
return {
@ -68,7 +69,7 @@ const onOpenChange = (openKeys) => {
const HandleClick = (e) => {
console.log("点击成功");
const router = useRouter();
const key = e.key;
console.log(e.key);
switch (key) {

View File

@ -1,6 +1,8 @@
<template style="display: flex;flex-direction: row">
<LeftBar></LeftBar>
<router-view></router-view>
<template>
<div style="display: flex;flex-direction: row" >
<LeftBar></LeftBar>
<router-view></router-view>
</div>
</template>
<script setup>
import LeftBar from "@/Manager/LeftBar.vue";

View File

@ -1,6 +1,8 @@
<template style="display: flex;flex-direction: column;">
<Header></Header>
<MainSection></MainSection>
<template >
<div style="display: flex;flex-direction: column;">
<Header></Header>
<MainSection></MainSection>
</div>
</template>
<script setup>
import Header from "@/Manager/Header.vue";