The problem of packaging blank pages of local operation after setting browserHistory by dva

I have asked a question before, but there is no answer.
I tried to initialize a project with dva new demo, then npm run build the initialized project directly, and then open the index.html file in the dist directory after the build. The browser is blank. What is the reason, please?

clipboard.png

did not render at all, the whole page is blank, and there is no error!

ask for the answer of the Great God. Some people said before that using browserhistory requires proxy and nginx configuration, so that secondary routes can be displayed, but I can"t show first-level routes now.

after using the default history configuration, the packaged one will work properly! Solve

Feb.27,2021

ref to



buildnginxhtmllocalhost
Menu