A white screen appears on the deployment line of the uni-app packaging project

When our project adopts the h5 one-click packaging method of uni-app, a white screen will appear after deploying to the online server. It may be that our basic project path is not set correctly, resulting in the file not being found, so that the white screen is accessed .

So how do we solve it?

1. Find the manifest.json file of the project file of uni-app

e32b639070e045d4ae87e5fa89e65803.png

 2. Find the web configuration and modify the running base path to " ./ " (note: it should be placed under the root path of your project file)

388af18479154106bd2dfad391c625d2.png

 

08e423d4aa874968a4e4049d29526fc0.png

 

2.1 If what you want to place is not the root path, for example, if you want to put it in the h5 folder, then your base path should be set to " /jrH5/ "

9bbf7125e3ca4aee96de39c1fef1ae4a.png

 

 Finally, I hope I can help you. If it helps you, I hope you can give me a thumbs up!

Originality is not easy! ! !

 

Guess you like

Origin blog.csdn.net/m0_71231013/article/details/130858414