Home > Web Front-end > JS Tutorial > How to deal with background image errors in vue projects

How to deal with background image errors in vue projects

php中世界最好的语言
Release: 2018-03-28 10:00:24
Original
3260 people have browsed it

This time I will bring you the background pictures in the vue projectHow to deal with the error report, what are the notesfor handling the error report of the background picture in the vue project, the following is a practical case, let's go together take a look.

Solution:

##In utils.js

Add publicPath:'../../',

when introducing images or background images When using:

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Recommended reading:

Sometimes the resource file cannot be found after the css reference image is packaged

BootStrap is super high Detailed explanation of user experience framework

The above is the detailed content of How to deal with background image errors in vue projects. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template