mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
ui: fix homework scoreboard filter
This commit is contained in:
1 file changed
+1
-1
@@ -2,7 +2,7 @@ import $ from 'jquery';
|
|||||||
import { NamedPage } from 'vj/misc/Page';
|
import { NamedPage } from 'vj/misc/Page';
|
||||||
import { pjax } from 'vj/utils';
|
import { pjax } from 'vj/utils';
|
||||||
|
|
||||||
const page = new NamedPage('contest_scoreboard', () => {
|
const page = new NamedPage(['contest_scoreboard', 'homework_scoreboard'], () => {
|
||||||
const { tdoc } = UiContext;
|
const { tdoc } = UiContext;
|
||||||
const key = `scoreboard-star/${tdoc.domainId}/${tdoc.docId}`;
|
const key = `scoreboard-star/${tdoc.domainId}/${tdoc.docId}`;
|
||||||
const read = () => JSON.parse(localStorage.getItem(key) || '[]');
|
const read = () => JSON.parse(localStorage.getItem(key) || '[]');
|
||||||
|
|||||||
Reference in new issue
Block a user