当我在vue.js中单击review order作为前端,在后端单击ruby时,我需要帮助检索缺少的渲染图像。在添加到 checkout 列表之前,三个图像中只有一个渲染图像。我已经运行了chrome开发工具,在这段代码中,我看到缺少这些图像:
: ((upload = false), (preview_url = blank_url));
this.reviewOrderDisabled = true;
this.$store.commit("changeIfReorder", false);
let user_id = this.$store.getters.id;
this.saveDraftDisabled = true;
this.selectedProduct.img_url = this.artwork_url;
this.$store.commit("changeSelected", this.selectedProduct);
MockupService.saveProductTemplate(
this.productTemplate.id,
this.layers,
preview_url,
this.artwork_url,
this.previewImgObjs,
upload,
user_id,
blank_url
)
.then((data) => {
console.log(
"data from product template save::: " + JSON.stringify(data)
);
this.saveDraftDisabled = false;
this.save_success = true;
this.save_msg =
"This draft was saved to Product Templates in your Dashboard.";
var layer = data.data.layers.layers[0];
if (layer) {
this.$store.commit("changeImgUrl", layer);
}
if (this.file.image) {
window.location = "/product/checkout/null&isPaid=false";
}
// }
})
.catch((error) => {
this.saveDraftDisabled = false;
// this.error =
// "There was an error in saving your draft. Please try again later.";
});
},
hide() {
this.showModal = false;
如果有人能帮助我,我将不胜感激。提前谢谢
暂无答案!
目前还没有任何答案,快来回答吧!