Browse Source

修改问题

张保健 4 years ago
parent
commit
8b98a7e74b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/utils/data.js

+ 4 - 1
src/utils/data.js View File

1
 import store from '@/store'
1
 import store from '@/store'
2
 
2
 
3
-export function getDataConfig(module, field) {
3
+export function getDataConfig (module, field) {
4
   var storeConfigList = store.getters.configlist
4
   var storeConfigList = store.getters.configlist
5
   var moduleConfig = storeConfigList[module]
5
   var moduleConfig = storeConfigList[module]
6
+  if (moduleConfig == undefined) {
7
+    return false
8
+  }
6
   if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
9
   if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
7
     var Aresult = []
10
     var Aresult = []
8
     for (var j = 0; j < moduleConfig.length; j++) {
11
     for (var j = 0; j < moduleConfig.length; j++) {