Home > front end >  Vue - element - admin - master the local open problems
Vue - element - admin - master the local open problems

Time:12-07

"Vue - element - admin - master (or vue - admin - template
"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:

reference 1st floor jio can reply:
directly open the inside of the dist index. The HTML? The need to use the service to run to, nginx/tomcat...

I know that is commonly used to deploy the server, special circumstances, have to open direct local, I think it's a plug-in, do you have a solution?

CodePudding user response:

Local run install nginx run to the line, the configuration is simple just configuration project path is ok (for baidu nginx configuration)
  • Related