mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: support extra title content
This commit is contained in:
1 parent
d49f134fa3
commit
09a83c4364
4 files changed
+6
-1
No files matched your search
@@ -130,6 +130,7 @@ export class ProblemCategoryHandler extends ProblemHandler {
|
||||
this.response.body = {
|
||||
path, page, pcount, ppcount, pdocs, psdict, category: category.join('+'),
|
||||
};
|
||||
this.extraTitleContent = category.join('+');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,6 +181,7 @@ export class ProblemDetailHandler extends ProblemHandler {
|
||||
[this.pdoc.title, null, true],
|
||||
],
|
||||
};
|
||||
this.extraTitleContent = this.pdoc.title;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
||||
@@ -192,6 +192,7 @@ class UserDetailHandler extends Handler {
|
||||
this.response.body = {
|
||||
isSelfProfile, udoc, sdoc, rdocs, pdocs, pcount, pdict, path,
|
||||
};
|
||||
this.extraTitleContent = udoc.uname;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user