mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: 修复题目侧栏中用户头像显示两次的问题
This commit is contained in:
1 parent
aaae75baf3
commit
ecadd08cec
2 files changed
+2
-1
No files matched your search
@@ -13,6 +13,7 @@ export default new AutoloadPage('media', async () => {
|
|||||||
users.get().forEach((ele) => resolve(ele, { type: 'user', id: +$(ele).text() }));
|
users.get().forEach((ele) => resolve(ele, { type: 'user', id: +$(ele).text() }));
|
||||||
$dom.find('.typo').get().forEach((el) => {
|
$dom.find('.typo').get().forEach((el) => {
|
||||||
$(el).find('a[href]').get().forEach((ele) => {
|
$(el).find('a[href]').get().forEach((ele) => {
|
||||||
|
if ($(ele).parent().hasClass('user-profile-link')) return;
|
||||||
let target = $(ele).attr('href');
|
let target = $(ele).attr('href');
|
||||||
let { domainId } = UiContext;
|
let { domainId } = UiContext;
|
||||||
if (target.startsWith(UiContext.url_prefix)) {
|
if (target.startsWith(UiContext.url_prefix)) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.11.28",
|
"version": "4.11.29",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user