Home > Article > Web Front-end > How vue operates static images and network images
This time I will bring you how to operate vueStaticPicturesand network pictures, Notes on vue operating static pictures and network picturesThere are Which ones, the following are practical cases, let’s take a look.
You need to dynamically request back-end images in your own project
Generally, it needs to be written in created because the image cannot come through during beforeCreate. If we want to request data at this time, then we need to store the address of the image in a place. It can be local or in vuex
If you want to add or change static pictures dynamically, we need to change the directory structure of the pictures
Put the image instatic and then imgUrl:
['/static/clinical.png','/static/nursing.png','/static/function.png','/static/test.png','/static/drug.png','/static/ admin.png'] 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:vue changes the status of the currently selected item
How to get the selection when using the mint-ui time plug-in Value
How NodeJS implements WebSocket function
The above is the detailed content of How vue operates static images and network images. For more information, please follow other related articles on the PHP Chinese website!