Browse Source

解决报错

shaun-sheep 4 years ago
parent
commit
56954a3b32
2 changed files with 3 additions and 3 deletions
  1. 2 2
      public/systemConf.js
  2. 1 1
      src/views/legendLibrary/addLegend.vue

+ 2 - 2
public/systemConf.js

@@ -25,8 +25,8 @@ var __systemConf = {
     conf: {
     conf: {
         // 阿里云
         // 阿里云
         editerUrl: 'http://60.205.177.43:80/wandaEditer/', // 编辑器地址
         editerUrl: 'http://60.205.177.43:80/wandaEditer/', // 编辑器地址
-        // wandaBmGuideUrl: 'http://60.205.177.43:80/wandaBmGuide/', //管理书地址
-        wandaBmGuideUrl: 'http://192.168.200.100:8090/wandaBmGuide/', //管理书地址
+        wandaBmGuideUrl: 'http://60.205.177.43:80/wandaBmGuide/', //管理书地址
+        // wandaBmGuideUrl: 'http://192.168.200.13:8090/wandaBmGuide/', //管理书地址
     },
     },
 }
 }
 window.__systemConf = __systemConf
 window.__systemConf = __systemConf

+ 1 - 1
src/views/legendLibrary/addLegend.vue

@@ -125,7 +125,7 @@ export default {
                 this.InfoTypeIdList = []
                 this.InfoTypeIdList = []
 
 
                 // this.InfosList = [...row.InfoLocal.map(({ id }) => id), ...row.InfoSystem]
                 // this.InfosList = [...row.InfoLocal.map(({ id }) => id), ...row.InfoSystem]
-                this.InfosList = [...row.InfoLocal.map(({ id }) => id)]
+                this.InfosList = row.InfoLocal ? [...row.InfoLocal.map(({ id }) => id)] : []
                 this.InfoTypeIdList = row.InfoTypeId
                 this.InfoTypeIdList = row.InfoTypeId
                 console.log(this.InfosList, this.InfoTypeIdList)
                 console.log(this.InfosList, this.InfoTypeIdList)
                 console.log(this.info)
                 console.log(this.info)