Umijs dva automatically generates routing problems

my directory is as follows:

+blocks
  - $id
    - models
       - detail.js
    - index.js
    - index.less

I see a umi+dva backend, which will automatically generate the following routes, but my directory structure configuration can never be generated automatically. It will only be generated automatically if I write in a directory below page. Any JS or folders I add under page > blocks will not update the route automatically. Is there any solution

?
{ 
    "path": "/blocks/:id", 
    "exact": true, 
    "component": require("../blocks/$id/index.js").default 
},
Mar.18,2021

I also have a similar problem. How did the landlord solve it?

Menu