Explorar o código

fix 订单图片

yb hai 10 meses
pai
achega
4532c58418
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/views/mall/order/storeOrder/index.vue

+ 3 - 3
src/views/mall/order/storeOrder/index.vue

@@ -139,7 +139,7 @@
           <block v-if="scope.row.orderType != 'due'">
             <div class="tabBox" v-for="(val, i ) in scope.row.storeOrderCartInfoDOList" :key="i">
                 <div class="tabBox_img">
-                    <img :src="val.image" />
+                  <img :src="VITE_BASE_URL + val.image" />
                 </div>
                 <span class="tabBox_tit">{{ val.title + ' - ' }}{{val.spec}}</span>
                 <span class="tabBox_pice">{{ '¥'+ val.price + ' x '+ val.number}}</span>
@@ -312,7 +312,7 @@ const queryParams = reactive({
 })
 const queryFormRef = ref() // 搜索的表单
 const exportLoading = ref(false) // 导出的加载中
-
+const VITE_BASE_URL = import.meta.env.VITE_BASE_URL
 const activeName = ref('')
 const orderStatus = ref('')
 const payStatus = ref('')
@@ -498,4 +498,4 @@ onMounted(() => {
     text-align: left;
   }
 
-</style>
+</style>