Article From:

vueThe project is packaged on Tomcat and shown to be all white. All requests for resources have been successful.

Answer 0:

I forgot to add base to routes. Thank you! Nginx can also be displayed without adding base

Answer 1:

Can you encode your Vue?

Answer 2:

I also had this problem, I don’t know if it’s the same with you, config’s path problem.

Answer 3:

You can see if the resource files such as JS have been loaded successfully, if not, that is the path problem.

Answer 4:…

Answer 5:

vueDeploy tomcat,

The first is to bring the project name to config.

assetsPublicPath: '/project/'

Visitlocalhost:8080/project/ You can.

Second, do not bring the project name, under the root directory, enter the IP address + port number directly.

Remember web.xml


This is the key

Leave a Reply

Your email address will not be published. Required fields are marked *