This commit is contained in:
undefined committed 2021-04-21 23:21:08 +08:00
1 parent b49a2fde74
commit 880bbbf56f
4 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.23.16",
"version": "2.23.17",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
+1
View File
@@ -502,6 +502,7 @@ export class Handler extends HandlerCommon {
if (!this.user) this.user = await user.getById('system', 0);
throw new NotFoundError(domainId);
}
this.UiContext.domainId = this.domainId;
this.user = await user.getById(domainId, this.session.uid, this.session.scope);
if (!this.user) {
this.session.uid = 0;
@@ -9,7 +9,7 @@ function getText(pdoc) {
}
function getItems(prefix) {
return request.get('/problem/list', { prefix });
return request.get(`/d/${UiContext.domainId}/problem/list`, { prefix });
}
function renderItem(pdoc) {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.6.9",
"version": "4.6.10",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",