| import { createRouter, createWebHistory } from 'vue-router' |
|
|
| const routes = [ |
| { path: '/', name: 'Dashboard', component: () => import('./views/Dashboard.vue'), meta: { title: '仪表盘', icon: 'Monitor' } }, |
| { path: '/market', name: 'Market', component: () => import('./views/MarketView.vue'), meta: { title: '行情中心', icon: 'TrendCharts' } }, |
| { path: '/trading', name: 'Trading', component: () => import('./views/TradingView.vue'), meta: { title: '交易下单', icon: 'Sell' } }, |
| { path: '/strategies', name: 'Strategies', component: () => import('./views/StrategiesView.vue'), meta: { title: '量化策略', icon: 'DataAnalysis' } }, |
| { path: '/positions', name: 'Positions', component: () => import('./views/PositionsView.vue'), meta: { title: '持仓管理', icon: 'Wallet' } }, |
| { path: '/opportunities', name: 'Opportunities', component: () => import('./views/OpportunitiesView.vue'), meta: { title: '寻找机会', icon: 'Aim' } }, |
| { path: '/backtest', name: 'Backtest', component: () => import('./views/BacktestView.vue'), meta: { title: '策略回测', icon: 'DataAnalysis' } }, |
| { path: '/risk', name: 'Risk', component: () => import('./views/RiskView.vue'), meta: { title: '风控中心', icon: 'Warning' } }, |
| { path: '/services', name: 'Services', component: () => import('./views/ServicesView.vue'), meta: { title: '服务控制台', icon: 'Setting' } }, |
| { path: '/research', name: 'Research', component: () => import('./views/FactorResearchView.vue'), meta: { title: '因子研究', icon: 'Cpu' } }, |
| ] |
|
|
| export default createRouter({ |
| history: createWebHistory(), |
| routes, |
| }) |
|
|