fixed:修复表名是大写字母开头时,自动化代码异常问题。 (#1961)

Co-authored-by: zsc <zhangshuncheng@dhcc.com.cn>
This commit is contained in:
Isaacedvr1003 2024-12-13 17:51:00 +08:00 committed by GitHub
parent 69ddb2ddff
commit 07c21caf8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1326,8 +1326,8 @@
const tbHump = toHump(dbform.value.tableName) const tbHump = toHump(dbform.value.tableName)
form.value.structName = toUpperCase(tbHump) form.value.structName = toUpperCase(tbHump)
form.value.tableName = dbform.value.tableName form.value.tableName = dbform.value.tableName
form.value.packageName = tbHump form.value.packageName = toLowerCase(tbHump)
form.value.abbreviation = tbHump form.value.abbreviation = toLowerCase(tbHump)
form.value.description = tbHump + '表' form.value.description = tbHump + '表'
form.value.autoCreateApiToSql = true form.value.autoCreateApiToSql = true
form.value.fields = [] form.value.fields = []