Commit 6a7c41de by yiyu.li

bug

parent acbf1f72
<template>
<div>
员工上下料管理
<div class="divborder">
<div class="choose">
<p class="selectTitle">
......@@ -117,8 +116,7 @@
<p class="infoLabel">产品图片:</p>
<div>
<img
:src="
axios.publicPath + orderDetail.url
:src="orderDetail.url
"
alt=""
style="width: 100%"
......@@ -421,6 +419,11 @@ export default {
.then((res) => {
if (res.data.ret == 1) {
let obj = res.data.data;
if(obj.url == null || obj.url=='' || obj.url ==undefined){
obj.url = ''
}else{
obj.url = this.axios.publicPath +obj.url;
}
this.orderDetail = Object.assign(
{},
this.orderDetail,
......@@ -428,6 +431,7 @@ export default {
);
} else {
this.$Message.error(this.$t(res.data.msg));
this.orderDetail = {};
}
})
.catch((err) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment