# 移动端日历事件错误

**URL:** <https://meta.discourse.org/t/bug-calendar-event-on-mobile/372658>\
**Category:** Bug\
**Tags:** mobile, events\
**Created:** [2025年七月2日 17:00 UTC](https://meta.discourse.org/t/bug-calendar-event-on-mobile/372658 "2025-07-02T17:00:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**Post date:** [2026年五月13日 07:56 UTC](https://meta.discourse.org/t/bug-calendar-event-on-mobile/372658/5 "2026-05-13T07:56:23Z")

</div>

我已经针对此问题提交了一个小型 PR：

> <https://github.com/discourse/discourse/pull/39963>
>
> \## Summary
> 
> Adds a new \`calendar\_category\_default\_view\` site setting for categ…ory calendars in the discourse-calendar plugin.
> 
> This allows admins to configure the default FullCalendar view used on category calendar pages (e.g. month/week/day/year).
> 
> Per-category \`defaultView\` values in calendar\_categories continue to take precedence over the global default setting.
> 
> \## Changes
> 
> \- Added new site setting:
> - \`calendar\_category\_default\_view‘
> \- Reused existing \`CalendarUpcomingEventsDefaultView\` enum
> \- Updated CategoryCalendar to use:
> - category defaultView if present
> - otherwise fallback to \`calendar\_category\_default\_view\`
> \- Added system spec coverage for precedence behaviour
> 
> \## Notes
> 
> This mirrors the existing \`calendar\_upcoming\_events\_default\_view\` behaviour used for \`/upcoming-events\`.

该 PR 新增了一个 `calendar_category_default_view` 站点设置，使得分类日历可以拥有可配置的默认视图，而不再仅依赖当前的回退行为。

该 PR 仍需审查和批准，因此目前尚不可用，但它可能与此处提到的“移动端月视图”用例相关。

---

_[View the full topic](https://meta.discourse.org/t/bug-calendar-event-on-mobile/372658)._
