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