Skip to content

Commit

Permalink
[fixed]:自动生成代码pkg和结构简称相同导致编译不通过 flipped-aurora#1379
Browse files Browse the repository at this point in the history
  • Loading branch information
piexlmax committed Mar 18, 2023
1 parent 4bcd352 commit 6dd8fd0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web/src/view/systemTools/autoCode/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,15 @@ const enterForm = async(isPreview) => {
})
return false
}
if (form.value.package === form.value.abbreviation) {
ElMessage({
type: 'error',
message: 'package和结构体简称不可同名'
})
return false
}
autoCodeForm.value.validate(async valid => {
if (valid) {
for (const key in form.value) {
Expand Down

0 comments on commit 6dd8fd0

Please sign in to comment.