Browse Source

fix: 修正产品信息显示

liujt 3 months ago
parent
commit
076cec3197
2 changed files with 6 additions and 5 deletions
  1. 5 4
      src/views/traceability/traceabilityCode/index.vue
  2. 1 1
      vue.config.js

+ 5 - 4
src/views/traceability/traceabilityCode/index.vue

@@ -65,7 +65,7 @@
               <div class="info-col">
                 <div class="info-item">
                   <span class="info-label">型号:</span>
-                  <span class="info-value">{{ detail.purchaseOrigins }}</span>
+                  <span class="info-value">{{ detail.modelType }}</span>
                 </div>
               </div>
             </div>
@@ -391,9 +391,10 @@ export default {
 }
 
 .product-image {
-  width: 120px;
-  height: 120px;
-  border-radius: 4px;
+  width: 150px;
+  height: 150px;
+  border-radius: 50%;
+  object-fit: cover;
 }
 
 .product-info-section {

+ 1 - 1
vue.config.js

@@ -28,7 +28,7 @@ module.exports = {
         // target: 'http://124.71.68.31:50001',
         // target: 'http://192.168.1.105:18086',
         // target: 'http://192.168.1.251:18186',
-        target: 'http://192.168.1.125:18086',
+        target: 'http://192.168.1.251:18186',
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {
           '^/api': ''