mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix search by tag
This commit is contained in:
1 parent
526eaa2603
commit
457d3b4a41
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.13.11",
|
"version": "4.13.12",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ async function updateSelection(sendRequest = true) {
|
|||||||
url = substitute(decodeURIComponent(UiContext.getProblemUrlWithCategory), {
|
url = substitute(decodeURIComponent(UiContext.getProblemUrlWithCategory), {
|
||||||
category: requestTags
|
category: requestTags
|
||||||
.map((tag) => tag.split(',').map(encodeURIComponent).join(','))
|
.map((tag) => tag.split(',').map(encodeURIComponent).join(','))
|
||||||
.join('+'), // build a beautiful URL
|
.join(','), // build a beautiful URL
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const q = $('[name="q"]').val();
|
const q = $('[name="q"]').val();
|
||||||
|
|||||||
Reference in new issue
Block a user