After the vue mavon-editor image is uploaded successfully, how can it be reflected in the article?

in the local test, mavon-editor implements the blog post time, which can be uploaded to the server when uploading the image, but an error is reported when it is echoed locally.




127.0.0.1:8080 127.0.0.1:3003
()

(mavon-editor)


could you tell me how to solve this problem? Can it be called locally?

Mar.18,2021

the path returned to you by the server is incorrect. Open that path directly in the browser to see if you can see the image


I store the image under the uploads/ in the root directory, and then return it to the frontend and directly return the uploads/xxx.png, instead of the domain name with the server, so that the frontend can get the image normally.

Menu