Article From:https://segmentfault.com/q/1010000011115226
Question:

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:

https://segmentfault.com/a/11…

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

<welcome-file>index.html</welcome-file>

This is the key

Leave a Reply

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