Skip to content

Commit af8d6cc

Browse files
author
shuai
committed
fix: encode search params #282
1 parent b608ae6 commit af8d6cc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ui/src/services/common.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export const addComment = (params) => {
7272
};
7373

7474
export const queryTags = (tag: string) => {
75-
return request.get(`/answer/api/v1/question/tags?tag=${tag}`);
75+
return request.get(
76+
`/answer/api/v1/question/tags?tag=${encodeURIComponent(tag)}`,
77+
);
7678
};
7779

7880
export const useQueryAnswerInfo = (id: string) => {

0 commit comments

Comments
 (0)