S
S
slaxik1232020-01-15 18:56:37
Express.js
slaxik123, 2020-01-15 18:56:37

Extracting photos from the database?

Good evening everyone. I write :src="user.photo", the link that is specified in the database is displayed - everything is correct, but the view recodes the links to the images, and nothing works for me. Please explain how to do it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-01-16
@slaxik123

17 hours without answer??? )))
Pass through static.
I am passing it like this:

{iso: 'IS', name: 'Исландия', image: '/static/images/country/IS/Flag_of_Iceland.svg',},

A
Alex, 2020-01-15
@Kozack Vue.js

Vue itself doesn't change the data in any way. So you are not passing them correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question