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,
|
||||
): Promise<PageResponse<Resource>> {
|
||||
return this._callApi(() =>
|
||||
axios.get(`${this.apiBaseUrl}/resource/tag/${tag}`, {
|
||||
axios.get(`${this.apiBaseUrl}/resource/tag/${encodeURIComponent(tag)}`, {
|
||||
params: {
|
||||
page,
|
||||
},
|
||||
|
@@ -348,7 +348,7 @@ function Tags({ tags }: { tags: Tag[] }) {
|
||||
"m-1 cursor-pointer badge-soft badge-primary shadow-xs"
|
||||
}
|
||||
onClick={() => {
|
||||
navigate(`/tag/${tag.name}`);
|
||||
navigate(`/tag/${encodeURIComponent(tag.name)}`);
|
||||
}}
|
||||
>
|
||||
{tag.name}
|
||||
|
Reference in New Issue
Block a user