diff --git a/src/assets/svg/menu-fold.svg b/src/assets/svg/menu-fold.svg new file mode 100644 index 0000000..08a646c --- /dev/null +++ b/src/assets/svg/menu-fold.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/svg/menu-unfold.svg b/src/assets/svg/menu-unfold.svg new file mode 100644 index 0000000..fde0009 --- /dev/null +++ b/src/assets/svg/menu-unfold.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/layouts/Page.vue b/src/layouts/Page.vue index 6f6a6aa..d9fbcb5 100644 --- a/src/layouts/Page.vue +++ b/src/layouts/Page.vue @@ -8,6 +8,7 @@ const route = useRoute(); const routerKey = computed(() => { return route.path + Math.random(); }); +const hideFooter = computed(() => route.meta?.hideFooter); /*** - end */ @@ -19,7 +20,7 @@ const routerKey = computed(() => { - + 闽公网安备 352018502850842号 闽ICP备20250520582号 © 2025小题科技,All Rights Reserved. * 数据通过公开渠道获取,灵机进行统计分析 diff --git a/src/router/routes/modules/agent.ts b/src/router/routes/modules/agent.ts index c9efb45..2707987 100644 --- a/src/router/routes/modules/agent.ts +++ b/src/router/routes/modules/agent.ts @@ -25,6 +25,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [ locale:'智能体应用', requiresAuth: false, requireLogin: true, + hideFooter: true, }, } ], diff --git a/src/views/agent/chat/index.vue b/src/views/agent/chat/index.vue index 566150f..23c4301 100644 --- a/src/views/agent/chat/index.vue +++ b/src/views/agent/chat/index.vue @@ -1,19 +1,36 @@ @@ -23,11 +40,19 @@ import { ref, onMounted } from 'vue'; import { getChatAgent } from '@/api/all/agent'; import HistoryChat from './components/HistoryChat.vue'; import { useRouter } from 'vue-router'; +import menuFold from '@/assets/svg/menu-fold.svg'; +import menuUnfold from '@/assets/svg/menu-unfold.svg'; const router = useRouter(); // 存储认证令牌 const authToken = ref(''); +const isCollapsed = ref(false); + +// 切换折叠状态 +const toggleCollapse = () => { + isCollapsed.value = !isCollapsed.value; +}; // 模拟从API获取token const fetchToken = async () => { @@ -136,5 +161,4 @@ onUnmounted(() => { diff --git a/src/views/agent/chat/style.scss b/src/views/agent/chat/style.scss index 780a2d8..e2128d4 100644 --- a/src/views/agent/chat/style.scss +++ b/src/views/agent/chat/style.scss @@ -39,4 +39,6 @@ width: 15% !important; } } + + } diff --git a/src/views/agent/index/index.vue b/src/views/agent/index/index.vue index f816baa..c6d7a7f 100644 --- a/src/views/agent/index/index.vue +++ b/src/views/agent/index/index.vue @@ -1,7 +1,7 @@