소스 검색

Merge remote-tracking branch 'origin/dev' into dev

shaun-sheep 4 년 전
부모
커밋
3b05abccab
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7 3
      src/components/data_admin/zoneInput.vue

+ 7 - 3
src/components/data_admin/zoneInput.vue

@@ -76,10 +76,14 @@ export default {
         }
         else if(cascaderInput.indexOf(item.inputMode) != -1){
           let options;
-          if (item.dataSource instanceof Array) {
-            options = item.dataSource;
+          if (item.dataSource) {
+            if (item.dataSource instanceof Array) {
+              options = item.dataSource;
+            } else {
+              options = JSON.parse(item.dataSource)
+            }
           } else {
-            options = JSON.parse(item.dataSource)
+            options = []
           }
           if (options[0] && options[0].content) {
             item.props = {