fix .trim search

parent 80b5af35
...@@ -84,7 +84,7 @@ export default defineComponent({ ...@@ -84,7 +84,7 @@ export default defineComponent({
url: API_PATHS.getListCategoryPost, url: API_PATHS.getListCategoryPost,
method: 'GET', method: 'GET',
params: { params: {
name: keywordSearch.value, name: keywordSearch.value?.trim(),
}, },
})) as AxiosResponse<BaseResponseBody<CategoryPostType[]>>; })) as AxiosResponse<BaseResponseBody<CategoryPostType[]>>;
if (response.data.error.code === config.API_RES_CODE.OK.code) { 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