The bizarre picture loading problem of vue-cli

the backend returns the image address, and after stitching the string, it is displayed on the page

The actual address displayed by the src of

img is http://localhost:port/+ picture address

which god knows how to solve this problem


img src

img src

Feb.27,2021

if there is a problem with localhost:port, you can just change ${API_IMGURL} to the server static resource directory


I don't quite understand your question

host = http://localhost:8000
${API_IMGURL} change to ${host} ${API_IMGURL}

won't it be all right?

This problem does not occur with

. What's in front of the string you spliced? Shouldn't it be an absolute path?

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