Skip to content

Commit

Permalink
[delete]{GenerateForm}: 删除id
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Mar 21, 2019
1 parent cf8e874 commit d51b426
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/FormDesigner/GenerateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,6 @@ export default {
},
methods: {
generateModle(genList) {
// 添加一个ID隐藏域
const obj = {
model: 'id',
type: 'hidden',
options: {
defaultValue: '',
remote: false,
},
rules: [],
}
genList.push({ ...obj })
for (let i = 0; i < genList.length; i++) {
if (genList[i].type === 'grid') {
genList[i].columns.forEach((item) => {
Expand Down

0 comments on commit d51b426

Please sign in to comment.