zhujindu hai 11 meses
pai
achega
1585d12435
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/utils/index.js

+ 1 - 1
src/utils/index.js

@@ -214,6 +214,6 @@ export function verifyStoreType(dictValue) {
   if (!dictValue) return null;
   let storeData = null;
   storeData = store.getters.storeType.find((val) => val.dictValue == dictValue);
-  let remarkType = JSON.parse(storeData.remark);
+  let remarkType = storeData ? JSON.parse(storeData.remark) : null;
   return remarkType;
 }