mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 08:46:40 +08:00
fix 日历
This commit is contained in:
@@ -79,17 +79,7 @@ async function getSubscribes() {
|
|||||||
subscribes.map(async sub => eventsHander(sub)),
|
subscribes.map(async sub => eventsHander(sub)),
|
||||||
)
|
)
|
||||||
|
|
||||||
// 自定义订阅
|
calendarOptions.value.events = subEvents.flat().filter(event => event.start) as EventSourceInput
|
||||||
const rsses: Rss[] = await api.get('rss')
|
|
||||||
|
|
||||||
const rssEvents = await Promise.all(
|
|
||||||
rsses.map(async rss => eventsHander(rss)),
|
|
||||||
)
|
|
||||||
|
|
||||||
// 合并事件
|
|
||||||
const events = [...subEvents, ...rssEvents]
|
|
||||||
|
|
||||||
calendarOptions.value.events = events.flat().filter(event => event.start) as EventSourceInput
|
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user