diff --git a/src/Manager/LeftBar.vue b/src/Manager/LeftBar.vue index fd8e871..44d4676 100644 --- a/src/Manager/LeftBar.vue +++ b/src/Manager/LeftBar.vue @@ -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) { diff --git a/src/Manager/MainSection.vue b/src/Manager/MainSection.vue index 840b2f0..33d1e25 100644 --- a/src/Manager/MainSection.vue +++ b/src/Manager/MainSection.vue @@ -1,6 +1,8 @@ -