From c83d7ead9e303543932730b852a5d7c78e3ebcb3 Mon Sep 17 00:00:00 2001 From: From-wh Date: Fri, 14 Apr 2023 10:22:30 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E5=BF=85=E5=A1=AB=E9=A1=B9=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/system/codeGeneration/components/FoundationFor.vue | 2 +- template/admin/src/pages/system/codeGeneration/index.vue | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue b/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue index 4cbdd2c91..619127a5b 100644 --- a/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue +++ b/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue @@ -15,7 +15,7 @@ :props="{ checkStrictly: true, multiple: false, emitPath: false }" clearable > -
可选项,选择的菜单成功后会自动写入到此菜单下
+
必选项,选择的菜单成功后会自动写入到此菜单下
diff --git a/template/admin/src/pages/system/codeGeneration/index.vue b/template/admin/src/pages/system/codeGeneration/index.vue index ea0cde668..cf47cea8e 100644 --- a/template/admin/src/pages/system/codeGeneration/index.vue +++ b/template/admin/src/pages/system/codeGeneration/index.vue @@ -85,9 +85,8 @@ export default { }, nextTab() { if (this.currentTab == 0) { - if (!this.formItem.foundation.tableName) { - return this.$Message.warning('请输入表名'); - } + if (!this.formItem.foundation.pid) return this.$Message.warning('请选择菜单'); + if (!this.formItem.foundation.tableName) return this.$Message.warning('请输入表名'); if (!this.formItem.foundation.isTable) { if (!this.$refs.Foundation.tableField.length) return this.$Message.warning('请先添加表数据'); if (this.$refs.Foundation.tableField.length)