他的回复:
解决方法:可以通过服务获取到图片的image_name和image_file拼接成图片的路径进行展示,例如:Nf.ready(function () { MessageProcessor.process({ serviceId: 'image_model_get', projectName, moduleName, data: { image_id: 5 }, success: function (data) { var img_file=data.result.image_file $.ajax({ url: "/adc-file/web/rest/v1/file/list", headers: { "mateinfo-file-token": img_file }, method: "get", success: (res) => { console.log(res) var image_name=res.file_names[0].file_name var src = "/adc-file/web/rest/v1/file/download?file_name=" + image_name + "&mateinfo_file_token=" + img_file var img_html = ''; $("#img_box").html(img_html); }, error: () => { } }); } });})