mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: contest: detail fix
This commit is contained in:
1 parent
7e8a90a6b2
commit
a988445597
10 files changed
+10
-31
No files matched your search
@@ -47,7 +47,6 @@ async function load() {
|
||||
...buildSequence(includedPages, 'after'),
|
||||
...buildSequence(currentPage, 'after'),
|
||||
];
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (const { page, func, type } of loadSequence) {
|
||||
const ts = new Date().getTime();
|
||||
try {
|
||||
@@ -69,13 +68,11 @@ async function load() {
|
||||
$element: $(section),
|
||||
}));
|
||||
console.log('done! %d ms', new Date().getTime() - start.getTime());
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (const { $element, shouldDelay } of sections) {
|
||||
$element.addClass('visible');
|
||||
if (shouldDelay) await delay(50);
|
||||
}
|
||||
await delay(500);
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (const { $element } of sections) $element.trigger('vjLayout');
|
||||
$(document).trigger('vjPageFullyInitialized');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user