core: support extra title content

This commit is contained in:
undefined committed 2021-03-01 00:44:12 +08:00
1 parent d49f134fa3
commit 09a83c4364
4 files changed
+6 -1

No files matched your search

+2
View File
@@ -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
+1
View File
@@ -192,6 +192,7 @@ class UserDetailHandler extends Handler {
this.response.body = {
isSelfProfile, udoc, sdoc, rdocs, pdocs, pcount, pdict, path,
};
this.extraTitleContent = udoc.uname;
}
}