mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: fix scoreboard star
This commit is contained in:
1 file changed
+1
-1
@@ -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))?.data || [];
|
||||
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