mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
补全翻译
This commit is contained in:
16
src/App.vue
16
src/App.vue
@@ -1,8 +1,6 @@
|
||||
<template>
|
||||
<!-- 首页:无侧边栏/头部 -->
|
||||
<template v-if="isHomePage">
|
||||
<RouterView />
|
||||
</template>
|
||||
<RouterView v-if="isHomePage" />
|
||||
|
||||
<!-- 其他页面:完整布局(含侧边栏) -->
|
||||
<SidebarProvider v-else :open="sidebarOpen" @update:open="handleSidebarOpenChange">
|
||||
@@ -133,13 +131,6 @@
|
||||
<SidebarMenuBadge v-if="item.path === '/fleet' && activeFleetMissionsCount > 0" class="bg-primary text-primary-foreground">
|
||||
{{ activeFleetMissionsCount }}
|
||||
</SidebarMenuBadge>
|
||||
<!-- 未读外交报告数量 -->
|
||||
<SidebarMenuBadge
|
||||
v-if="item.path === '/diplomacy' && unreadDiplomaticReportsCount > 0"
|
||||
class="bg-destructive text-destructive-foreground"
|
||||
>
|
||||
{{ unreadDiplomaticReportsCount }}
|
||||
</SidebarMenuBadge>
|
||||
</SidebarMenuButton>
|
||||
</SidebarMenuItem>
|
||||
</SidebarMenu>
|
||||
@@ -738,11 +729,6 @@
|
||||
return fleetMissions + flyingMissiles
|
||||
})
|
||||
|
||||
// 未读外交报告数量
|
||||
const unreadDiplomaticReportsCount = computed(() => {
|
||||
return (gameStore.player.diplomaticReports || []).filter(r => !r.read).length
|
||||
})
|
||||
|
||||
// 月球相关
|
||||
const moon = computed(() => {
|
||||
if (!planet.value || planet.value.isMoon) return null
|
||||
|
||||
Reference in New Issue
Block a user