LAPTOP-16IUEB3P\Lenovo 2 anni fa
parent
commit
6336835c6d
2 ha cambiato i file con 5 aggiunte e 6 eliminazioni
  1. 3 3
      src/views/produceOrder/detail.vue
  2. 2 3
      vue.config.js

+ 3 - 3
src/views/produceOrder/detail.vue

@@ -1206,15 +1206,15 @@
         this.$refs.bomListRef.open(row);
       },
 
-      refreshData () {
-        const res = getInfoById(this.workOrderId);
+     async refreshData () {
+        const res = await getInfoById(this.workOrderId);
         this.infoData = res;
         if (typeof res.taskTypeProcessDiagrams == 'string') {
           this.tabList = [];
         } else {
           this.tabList = res.taskTypeProcessDiagrams;
         }
-        this.setData();
+		this.setData()
       }
     }
   };

+ 2 - 3
vue.config.js

@@ -31,9 +31,8 @@ module.exports = {
     proxy: {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
-        target: 'http://192.168.3.51:18086', // 测试
-
-        // target: 'http://192.168.3.35:8080', // kang杨威
+        // target: 'http://192.168.3.51:18086', // 测试
+        target: 'http://192.168.3.35:8080', // kang杨威
         // target: 'http://192.168.3.25:8080', // 黄峥嵘
         // target: 'http://192.168.3.41:8080', // 何江鹏
         // target: 'http://192.168.3.33:8080', // 谢一平