mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: optimize resource load
This commit is contained in:
1 parent
ba0beee9a8
commit
f1e4d896b9
3 files changed
+17
-6
No files matched your search
@@ -1,10 +1,10 @@
|
||||
import { NamedPage } from 'vj/misc/Page';
|
||||
import Calendar from 'vj/components/calendar';
|
||||
import i18n from 'vj/utils/i18n';
|
||||
import { parse as parseMongoId } from 'vj/utils/mongoId';
|
||||
|
||||
const page = new NamedPage('homework_main', () => {
|
||||
const page = new NamedPage('homework_main', async () => {
|
||||
// Homework Calendar
|
||||
const { default: Calendar } = await import('vj/components/calendar');
|
||||
if (UiContext.docs) {
|
||||
const events = UiContext.docs.map((doc) => ({
|
||||
beginAt: doc.beginAt,
|
||||
|
||||
Reference in new issue
Block a user