mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
重构BattleReportDialog和BattleSimulatorView相关静态资源,替换旧版JS/CSS文件,提升界面一致性和交互体验。新增和优化空状态、滚动区域等通用UI组件,移除部分冗余composable,完善多语言内容。引入导弹逻辑,补充版本检测工具,提升整体代码结构和可维护性。
24 lines
1.5 KiB
TypeScript
24 lines
1.5 KiB
TypeScript
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes: [
|
|
{ path: '/', name: 'overview', component: () => import('@/views/OverviewView.vue') },
|
|
{ path: '/buildings', name: 'buildings', component: () => import('@/views/BuildingsView.vue') },
|
|
{ path: '/research', name: 'research', component: () => import('@/views/ResearchView.vue') },
|
|
{ path: '/shipyard', name: 'shipyard', component: () => import('@/views/ShipyardView.vue') },
|
|
{ path: '/defense', name: 'defense', component: () => import('@/views/DefenseView.vue') },
|
|
{ path: '/fleet', name: 'fleet', component: () => import('@/views/FleetView.vue') },
|
|
{ path: '/officers', name: 'officers', component: () => import('@/views/OfficersView.vue') },
|
|
{ path: '/battle-simulator', name: 'battle-simulator', component: () => import('@/views/BattleSimulatorView.vue') },
|
|
{ path: '/messages', name: 'messages', component: () => import('@/views/MessagesView.vue') },
|
|
{ path: '/galaxy', name: 'galaxy', component: () => import('@/views/GalaxyView.vue') },
|
|
{ path: '/diplomacy', name: 'diplomacy', component: () => import('@/views/DiplomacyView.vue') },
|
|
{ path: '/settings', name: 'settings', component: () => import('@/views/SettingsView.vue') },
|
|
{ path: '/gm', name: 'gm', component: () => import('@/views/GMView.vue') },
|
|
{ path: '/:pathMatch(.*)*', name: 'not-found', component: () => import('@/views/NotFoundView.vue') }
|
|
]
|
|
})
|
|
|
|
export default router
|