diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index 323e4e5..c94b96e 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -5,7 +5,7 @@
:size='assemblySize'
:button='buttonConfig'
>
-
+
diff --git a/frontend/src/layouts/components/Main/index.vue b/frontend/src/layouts/components/Main/index.vue
index 2f29123..454f07c 100644
--- a/frontend/src/layouts/components/Main/index.vue
+++ b/frontend/src/layouts/components/Main/index.vue
@@ -2,21 +2,15 @@
-
-
-
-
+
+
+
-
+
-
-
+
@@ -31,12 +25,14 @@ import Maximize from "./components/Maximize.vue";
import Tabs from "@/layouts/components/Tabs/index.vue";
import Footer from "@/layouts/components/Footer/index.vue";
import { useAuthStore } from "@/stores/modules/auth";
+import { useRoute, type RouteLocationNormalized } from 'vue-router'
const globalStore = useGlobalStore();
const authStore = useAuthStore();
const { maximize, isCollapse, layout, tabs, footer } = storeToRefs(globalStore);
-
+const route = useRoute()
const keepAliveStore = useKeepAliveStore();
const { keepAliveName } = storeToRefs(keepAliveStore);
+// console.log("🚀 ~ keepAliveName:", keepAliveName)
//是否显示导航栏
const showMenuFlag = computed(() => authStore.showMenuFlagGet);
// 注入刷新页面方法
@@ -64,6 +60,14 @@ watch(
},
{ immediate: true }
);
+watch(
+ () => route.path,
+ () => {
+ console.log(123, route.path);
+
+ },
+
+);
// 监听窗口大小变化,折叠侧边栏
const screenWidth = ref(0);