Skip to content

Commit

Permalink
[fixed]:自动生成代码pkg和结构简称相同导致编译不通过 #1379
Browse files Browse the repository at this point in the history
  • Loading branch information
piexlmax committed Mar 18, 2023
1 parent 8049466 commit 072acac
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 072acac

Please sign in to comment.