曾晨曦_branch
zcx 1 year ago
parent f0a01dc52a
commit 2991a0288e

@ -104,7 +104,7 @@ export default {
this.$router.push('/home');
},
gotomessage() {
this.$router.push('/message');
this.$router.push('/Communication');
},
gotomine() {
this.$router.push('/mine');

@ -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({

Loading…
Cancel
Save