diff --git a/front/src/App.vue b/front/src/App.vue index 1c8516c..96fbc70 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -21,7 +21,7 @@ const lotteries = ref([]); const lotteryParticipants = ref[]>([]); const shopForm = reactive({ item_key: '', name: '', cost: 0, desc: '', enabled: true }); const lotteryForm = reactive({ id: 0, title: '', prize: '', description: '', condition_type: 'all', condition_value: 0, draw_type: 'people', end_type: 'people', end_value: 3, max_participants: 3, draw_at: '', status: 'draft' }); -const activePage = ref<'dashboard' | 'chat' | 'logs' | 'shop' | 'lottery' | 'bans'>('dashboard'); +const activePage = ref<'dashboard' | 'shop' | 'lottery' | 'bans'>('dashboard'); const activeTab = reactive({ shop: 'items', lottery: 'events' }); const toast = ref(''); const confirmState = reactive({ open: false, title: '', message: '', confirmText: '确认', danger: false, resolver: null as null | ((value: boolean) => void) }); @@ -42,10 +42,10 @@ const chatCount = computed(() => chatLogs.value.length); const selectedQuery = computed(() => selectedChatId.value ? `?chat_id=${selectedChatId.value}` : ''); const pageTitle = computed(() => ({ - dashboard: '群组安全总览', chat: '聊天记录', logs: '运行日志', shop: '商城管理', lottery: '抽奖管理', bans: '封禁记录' + dashboard: '群组安全总览', shop: '商城管理', lottery: '抽奖管理', bans: '封禁记录' }[activePage.value])); const pageDesc = computed(() => ({ - dashboard: '实时审计聊天、封禁、日志和运营活动', chat: '群消息实时审计与手动处置', logs: '服务运行状态与错误排查', shop: '商品 CRUD 与兑换交易记录', lottery: '抽奖项目、开奖条件与参与记录', bans: '封禁审计与手动解封' + dashboard: '实时审计聊天、封禁、日志和运营活动', shop: '商品 CRUD 与兑换交易记录', lottery: '抽奖项目、开奖条件与参与记录', bans: '封禁审计与手动解封' }[activePage.value])); function goPage(page: typeof activePage.value) { activePage.value = page; @@ -383,8 +383,6 @@ onBeforeUnmount(() => {