How to dynamically bind images in vue, and return the image path through data in vue

In the project, the image path needs to be dynamically loaded, and the image path is not the data obtained from the background.

Therefore , it must be loaded with require in data , otherwise it will be treated as a string.

HTML is as follows:

JS is as follows:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325804841&siteId=291194637