Skip to content

Commit 6dd8fd0

Browse files
author
piexlmax
committed
[fixed]:自动生成代码pkg和结构简称相同导致编译不通过 flipped-aurora#1379
1 parent 4bcd352 commit 6dd8fd0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

web/src/view/systemTools/autoCode/index.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,15 @@ const enterForm = async(isPreview) => {
515515
})
516516
return false
517517
}
518+
519+
if (form.value.package === form.value.abbreviation) {
520+
ElMessage({
521+
type: 'error',
522+
message: 'package和结构体简称不可同名'
523+
})
524+
return false
525+
}
526+
518527
autoCodeForm.value.validate(async valid => {
519528
if (valid) {
520529
for (const key in form.value) {

0 commit comments

Comments
 (0)