mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
fix tag
This commit is contained in:
@@ -361,7 +361,7 @@ class Network {
|
|||||||
page: number,
|
page: number,
|
||||||
): Promise<PageResponse<Resource>> {
|
): Promise<PageResponse<Resource>> {
|
||||||
return this._callApi(() =>
|
return this._callApi(() =>
|
||||||
axios.get(`${this.apiBaseUrl}/resource/tag/${tag}`, {
|
axios.get(`${this.apiBaseUrl}/resource/tag/${encodeURIComponent(tag)}`, {
|
||||||
params: {
|
params: {
|
||||||
page,
|
page,
|
||||||
},
|
},
|
||||||
|
@@ -348,7 +348,7 @@ function Tags({ tags }: { tags: Tag[] }) {
|
|||||||
"m-1 cursor-pointer badge-soft badge-primary shadow-xs"
|
"m-1 cursor-pointer badge-soft badge-primary shadow-xs"
|
||||||
}
|
}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate(`/tag/${tag.name}`);
|
navigate(`/tag/${encodeURIComponent(tag.name)}`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{tag.name}
|
{tag.name}
|
||||||
|
Reference in New Issue
Block a user