"Once the run after dev can be normal use, NPM run build: prod
After packaging (publicPath this configuration need to publicPath: '/'), in the dist directory directly from the index. The HTML, the login page to load out, don't click on the login is the login, did you watch the F12 error (NPM run dev can login, function is no problem), to solve, why open just can't log in here?
CodePudding user response:
Directly open the index in the dist. HTML? The need to use the service to run to, nginx/tomcat...CodePudding user response: