How can the pictures uploaded by UEditor in the background management interface be displayed in the web application?

set up a background management page with Node.js+Vue+UEditor. The UEditor image upload can be used, and the uploaded image can be viewed normally in the UEditor editor

.

now the problem is that when I open another web service, I can"t get the picture when I get the content of the page edited by UEditor

related codes of background management service

var ueditor = require("ueditor"); //https://img.codeshelper.com/upload/img/2021/02/28/t3yquhxyhn3985.jpg" alt="apple.jpg"/>

log of the web service

GET /images/apple.jpg?noCache=jff6r41n 404 0.949 ms - 1422

I think the image has been uploaded to the public directory of the backend management service, so the image cannot be accessed by the web service. How to deal with this situation? Upload to a public directory?


is not only uploaded to a public directory, but the path generated here should be an absolute path

Menu