From 2991a0288ef452759322f6b875e990528b042786 Mon Sep 17 00:00:00 2001 From: zcx <1078327420@qq.com> Date: Sun, 12 May 2024 19:24:16 +0800 Subject: [PATCH] 1 --- src/前端/walktofree/src/components/HomePage.vue | 2 +- src/前端/walktofree/src/router/index.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/前端/walktofree/src/components/HomePage.vue b/src/前端/walktofree/src/components/HomePage.vue index bb45d92..c2e553d 100644 --- a/src/前端/walktofree/src/components/HomePage.vue +++ b/src/前端/walktofree/src/components/HomePage.vue @@ -104,7 +104,7 @@ export default { this.$router.push('/home'); }, gotomessage() { - this.$router.push('/message'); + this.$router.push('/Communication'); }, gotomine() { this.$router.push('/mine'); diff --git a/src/前端/walktofree/src/router/index.js b/src/前端/walktofree/src/router/index.js index 0d2390a..34fd80b 100644 --- a/src/前端/walktofree/src/router/index.js +++ b/src/前端/walktofree/src/router/index.js @@ -5,6 +5,8 @@ import Home from '../components/HomePage.vue'; import Message from '../components/message.vue'; import Mine from '../components/mine.vue'; import SearchPage from '../components/searchPage.vue'; +import Communication from "@/components/Communication.vue"; +import DemandList from "@/components/DemandList.vue"; const routes = [ { path: '/', redirect: '/login' }, // 重定向到/login路径 @@ -14,7 +16,9 @@ const routes = [ { path: '/message', component: Message }, { path: '/mine', component: Mine }, { path: '/searchPage', component: SearchPage }, - { path: '/Communication', component: Communication } + { path: '/Communication', component: Communication }, + { path: '/searchPage', component: SearchPage}, + { path: '/DemandList', component:DemandList} ]; const router = createRouter({