695593266@qq.com 1 месяц назад
Родитель
Сommit
ba429d81dd
2 измененных файлов с 5 добавлено и 2 удалено
  1. 3 1
      src/views/material/BOMmanage/components/workmanship.vue
  2. 2 1
      vue.config.js

+ 3 - 1
src/views/material/BOMmanage/components/workmanship.vue

@@ -688,7 +688,9 @@
               item._rowKey =
                 (item.id != null ? 'id_' + item.id : 'idx_' + idx) +
                 '_' +
-                (item.code != null ? item.code : idx);
+                (item.code != null ? item.code : 'nocode') +
+                '_' +
+                idx;
             }
           });
 

+ 2 - 1
vue.config.js

@@ -35,7 +35,7 @@ module.exports = {
         // target: 'http://192.168.1.3:18086',
         // target: 'http://192.168.1.158:18086',
         // target: 'http://192.168.1.176:18086',
-        target: 'http://192.168.1.125:18086',
+        // 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',
@@ -49,6 +49,7 @@ module.exports = {
         // target: 'http://192.168.1.116:18086', // 赵沙金
         // target: 'http://aiot.zoomwin.com.cn:51001/api',
         // target: 'http://f222326r53.imwork.net',
+        target: 'http://aiot.zoomwin.com.cn:51005/api',
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {