Skip to content

Commit

Permalink
[fix]{GenerateForm}: 修复初值赋值bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Aug 20, 2019
1 parent f718229 commit 54e9749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/FormDesigner/GenerateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ export default {
if (row.options.multiple || row.type === 'cascader') {
if (this.value[row.model] != null && this.value[row.model] !== '') {
this.models[row.model] = this.value[row.model].split(',');
} else {
this.models[row.model] = [];
}
} else if (this.value[row.model] == null || this.value[row.model] === '') {
this.setDefaultValue(row);
Expand Down

0 comments on commit 54e9749

Please sign in to comment.