mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix contest scoreboard
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -7,7 +7,7 @@ const page = new NamedPage(['contest_scoreboard', 'homework_scoreboard'], async
|
||||
const db = await openDB;
|
||||
const { tdoc } = UiContext;
|
||||
const id = `${tdoc.domainId}/${tdoc.docId}`;
|
||||
const read = async () => (await db.get('scoreboard-star', id)).value || [];
|
||||
const read = async () => (await db.get('scoreboard-star', id))?.value || [];
|
||||
const write = (data) => db.put('scoreboard-star', { id, data });
|
||||
|
||||
$(`.star.user--${UserContext._id}`).closest('tr').addClass('star-highlight');
|
||||
|
||||
Reference in new issue
Block a user