fix .trim search

parent 80b5af35
......@@ -84,7 +84,7 @@ export default defineComponent({
url: API_PATHS.getListCategoryPost,
method: 'GET',
params: {
name: keywordSearch.value,
name: keywordSearch.value?.trim(),
},
})) as AxiosResponse<BaseResponseBody<CategoryPostType[]>>;
if (response.data.error.code === config.API_RES_CODE.OK.code) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment