Skip to content

Commit

Permalink
[feature]{GenerateForm}: 加入Array判断
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Jun 5, 2019
1 parent d0a9b81 commit b5c4585
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/FormDesigner/GenerateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ export default {
*/
formValueToArray(row) {
if (row.options.multiple || row.type === 'cascader') {
this.models[row.model] = this.value[row.model].split(',');
if (Array.isArray(this.value[row.model])) {
this.models[row.model] = this.value[row.model].split(',');
}
} else {
this.models[row.model] = this.value[row.model];
}
Expand Down

0 comments on commit b5c4585

Please sign in to comment.