yunsii/ant-design-pro-plus

Search cannot be used in the curd page

ElegantLin opened this issue · 4 comments

Hello,

The search function on the curd page cannot be used. I am not sure it is my error while using or not. Could you please check it ?

Thanks a lot.

Is CurdPage work?

In addition, paste the usage of your code is better.

You can try this on your demo page. If you type a name in the input element and click search. But you can still find the other records.

You can see the search params in Network tab of BROWSER if process.env.ENV === 'development'. And this is service of CurdPage: services/curdPage.ts.

Moreover, I don't precess the search params mock data with umi 😳 And it's only USABLE in development environment. So I write mock data in HERE to use after process.env.ENV === 'production'.

In a word, it's OK, you can clone and start the repo to test if data is come from your backend PROPERLY.

Well, thanks for your reply. I will try it.