mirror of https://gitee.com/answerdev/answer.git
fix: encode search params #282
This commit is contained in:
parent
b608ae6faf
commit
af8d6cc7cf
|
@ -72,7 +72,9 @@ export const addComment = (params) => {
|
|||
};
|
||||
|
||||
export const queryTags = (tag: string) => {
|
||||
return request.get(`/answer/api/v1/question/tags?tag=${tag}`);
|
||||
return request.get(
|
||||
`/answer/api/v1/question/tags?tag=${encodeURIComponent(tag)}`,
|
||||
);
|
||||
};
|
||||
|
||||
export const useQueryAnswerInfo = (id: string) => {
|
||||
|
|
Loading…
Reference in New Issue