Vue2.0, web page visits are displayed normally in dev environment, but after build, when visiting the page, all 404NotFound errors are reported.

I developed a music APP project with vue2.0, and the page access was normal in development mode, but there was a 404 error when accessing the dist/index.html file after build came out, and I struggled with it for many days.
Note in advance: I changed my port to 8087.
clipboard.png


clipboard.png


clipboard.png

clipboard.png

clipboard.png


clipboard.png


clipboard.png


clipboard.png

     Vue
     Vue
     








Mar.20,2021

json file is placed in the static directory to see

Menu