Front-end vue backend node picture upload and display problem

in the past, when using node+ejs, the image path was returned directly, but after the front and rear ends were separated, the front end could not access the back end image path, so I would like to ask whether the picture is displayed through the get interface


response.set( 'content-type', mimeType );//
var stream = fs.createReadStream( imageFilePath );
var responseData = [];//
if (stream) {//
    stream.on( 'data', function( chunk ) {
      responseData.push( chunk );
    });
    stream.on( 'end', function() {
       var finalData = Buffer.concat( responseData );
       response.write( finalData );
       response.end();
    });
}
Menu