Browse Source

修复电压的显示

695593266@qq.com 15 hours ago
parent
commit
8e4f9bbb8f
2 changed files with 11 additions and 2 deletions
  1. 9 0
      src/views/material/product/detail.vue
  2. 2 2
      vue.config.js

+ 9 - 0
src/views/material/product/detail.vue

@@ -1494,7 +1494,16 @@
           }
           // this.$set(this.form.extTagField, 'isConsumables', 0); // 初始化动态模型属性
 
+          if (!this.form.extField) {
+            this.$set(this.form, 'extField', {});
+          }
+
           this.fileList.forEach((f) => {
+            if (
+              Object.prototype.hasOwnProperty.call(this.form.extField, f.prop)
+            ) {
+              return;
+            }
             this.$set(this.form.extField, f.prop, ''); // 初始化动态模型属性
             // this.$set(this.form.extTagField, f.prop, ''); // 初始化动态模型属性
           });

+ 2 - 2
vue.config.js

@@ -38,13 +38,13 @@ module.exports = {
         // target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.251:51005',
         // target: 'http://192.168.1.251:18186',
-        target: 'http://192.168.1.251:18086',
+        // target: 'http://192.168.1.251:18086',
         // target: 'http://192.168.1.251:18186',
         // target: 'http://192.168.1.3:18086',
         // target: 'http://192.168.1.251:18186', // 测试环境
         // target: 'http://192.168.1.251:18087',
         // target: 'http://192.168.1.116:18086',
-        // target: 'http://192.168.1.125:18086',
+        target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.11:18086', // 开发
         // target: 'http://192.168.1.116:18086', // 赵沙金
         // target: 'http://aiot.zoomwin.com.cn:51001/api',