File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,14 @@ const keymaster = require('keymaster');
76
76
77
77
export default {
78
78
name: " vcc" ,
79
- props: [' initCodeEntity' ],
79
+ props: {
80
+ initCodeEntity: {
81
+ type: Object ,
82
+ default : () => {
83
+ return {};
84
+ }
85
+ }
86
+ },
80
87
components: {
81
88
RawComponents : () => import (" ../components/RawComponents" ),
82
89
ToolsBar : () => import (" ./ToolsBar" ),
@@ -189,7 +196,7 @@ export default {
189
196
this .currentEditRawInfo = null ;
190
197
}).onSelectElement (rawInfo => {
191
198
this .currentEditRawInfo = rawInfo;
192
- }).saveJSCodeOnly (this .convertLogicCode (this .initCodeEntity .JSCode ))
199
+ }).saveJSCodeOnly (this .convertLogicCode (this .initCodeEntity .JSCode ? this . initCodeEntity . JSCode : ' ' ))
193
200
.render (this .initCodeEntity .codeStructure ? this .initCodeEntity .codeStructure : this .getFakeData ());
194
201
},
195
202
You can’t perform that action at this time.
0 commit comments