mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: fix #107
This commit is contained in:
1 parent
b49a2fde74
commit
880bbbf56f
4 files changed
+4
-3
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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,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",
|
||||
|
||||
Reference in new issue
Block a user