Преглед на файлове

fixbug: findIndex is null

reaper преди 4 години
родител
ревизия
5689ff2723
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 4 0
      src/components/cdssManage/plan/AddPlan.vue
  2. 2 2
      vue.config.js

+ 4 - 0
src/components/cdssManage/plan/AddPlan.vue

@@ -609,6 +609,10 @@ export default {
     },
     // 合并默认数据
     mergeDefaultPlans(data) {
+      if (!this.form.planDetailSub) {
+        this.form.planDetailSub = data;
+        return;
+      }
       data.forEach((item) => {
         const oneIndex = this.form.planDetailSub.findIndex(
           (ite) => ite.name === item.name

+ 2 - 2
vue.config.js

@@ -1,6 +1,6 @@
 const path = require('path');
-const proxy_path = 'http://192.168.2.236:5050';
-// const proxy_path = 'http://192.168.2.241:88';
+// const proxy_path = 'http://192.168.2.236:5050';
+const proxy_path = 'http://192.168.2.241:88';
 // const proxy_path = 'http://192.168.2.236:88';
 // const proxy_path = 'http://192.168.3.101:5050';
 // const proxy_path = 'http://192.168.3.117:5050';//周铁刚