Files
microfish/frontend/src/router/index.js
666ghj 70922a3525 Implement interaction features in Step5Interaction component and add routing for interaction view
- Introduced the Step5Interaction component for user interaction with report agents and simulation profiles.
- Added chat functionality to communicate with report agents and selected simulation agents.
- Implemented a survey feature to gather responses from multiple agents.
- Enhanced routing by adding a new InteractionView for seamless navigation to the interaction interface.
- Updated the router configuration to include the new interaction route.
- Improved UI elements and styles for better user experience in the interaction process.
2025-12-16 17:50:43 +08:00

53 lines
1.1 KiB
JavaScript

import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Process from '../views/MainView.vue'
import SimulationView from '../views/SimulationView.vue'
import SimulationRunView from '../views/SimulationRunView.vue'
import ReportView from '../views/ReportView.vue'
import InteractionView from '../views/InteractionView.vue'
const routes = [
{
path: '/',
name: 'Home',
component: Home
},
{
path: '/process/:projectId',
name: 'Process',
component: Process,
props: true
},
{
path: '/simulation/:simulationId',
name: 'Simulation',
component: SimulationView,
props: true
},
{
path: '/simulation/:simulationId/start',
name: 'SimulationRun',
component: SimulationRunView,
props: true
},
{
path: '/report/:reportId',
name: 'Report',
component: ReportView,
props: true
},
{
path: '/interaction/:reportId',
name: 'Interaction',
component: InteractionView,
props: true
}
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router