The problem of white screen when the vue project is packaged and put online.

displays normally locally, but the package is placed on the intranet server and the screen is blank

report this error

clipboard.png

clipboard.png

Mar.05,2021

found the reason:

add a base:/tax to router / index.js to

look at the picture, it's the wrong interface


first of all, have you loaded all your resource files? If it is not loaded into, it means that the assetsPublicPath packaged by webpack is misconfigured and needs / to become . / . If it is loaded, you can double-click the network request directly, and a new tab will open. Can you see some interfaces that can be requested to the backend at this time?
looks like this is a JSONP request, right?


Don't you need-sharp in your link? History mode?


what error does it report? What about mistakes? You make up for your mistakes


there is a mistake in the configuration of the front-end server online

have you noticed that your url has been followed by a slash /
. Today, I saw someone with the same problem as you. He used apache, and guessed that it was the configuration of apache. You can take a look at this

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a4e2-2ba4d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a4e2-2ba4d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?