Procházet zdrojové kódy

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

XMLWAN před 4 roky
rodič
revize
db777fd2f2
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      src/utils/data.js

+ 4 - 1
src/utils/data.js Zobrazit soubor

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