The background in the css attribute of the Vue project refers to the network image. What is the problem that it will not be displayed after packaging?

the background in the css attribute of the Vue project refers to the network image, which is not displayed after packaging?

many solutions on the Internet seem to be aimed at quoting local picture resources, so I would like to ask the bosses, is there a solution?

Jul.01,2021

has
solution:
1. You can transfer the image to base64 to the backend to return the database address;
2. Store local picture resources in the assets folder, which is used to store static resources;
3. Verify whether the image address is consistent with the http protocol of the project. For example, http accessing https, is a common big pit, just deal with it.


Hello, landlord! If the referenced network image cannot be accessed, the image link should be hotlink protection . It can be solved by nginx reverse proxy. If this is not the case, you can use the network tool in the browser to see what the exception is, and then solve it for this particular exception.

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-1eac98b-20eb.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-1eac98b-20eb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?