mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-19 12:02:50 +08:00
防止字段注释出现换行引发的报错
This commit is contained in:
parent
a686452b13
commit
124d451ff7
@ -39,7 +39,7 @@ function gen(groupPath, data){
|
||||
}
|
||||
html += `
|
||||
${d.columnName}: {
|
||||
label: '${d.columnComment}',
|
||||
label: '${d.columnComment.trim()}',
|
||||
${d.component}${props}
|
||||
},`
|
||||
}
|
||||
@ -66,7 +66,7 @@ function gen(groupPath, data){
|
||||
html += `
|
||||
{
|
||||
field: '${d.columnName}',
|
||||
label: '${d.columnComment}'${type}${dictType}
|
||||
label: '${d.columnComment.trim()}'${type}${dictType}
|
||||
},`
|
||||
}
|
||||
}
|
||||
@ -135,12 +135,12 @@ function gen(groupPath, data){
|
||||
messagePrefix = '请输入'
|
||||
}
|
||||
rules = `,
|
||||
rules: [{ required: true, message: '${messagePrefix}${d.columnComment}', trigger: 'change' }]`
|
||||
rules: [{ required: true, message: '${messagePrefix}${d.columnComment.trim()}', trigger: 'change' }]`
|
||||
}
|
||||
html += `{
|
||||
span: 12,
|
||||
name: '${d.columnName}',
|
||||
label: '${d.columnComment}',
|
||||
label: '${d.columnComment.trim()}',
|
||||
${d.component}${props}${rules}
|
||||
},`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user