🔖 v2.4 版本发布,详情查看发行版说明

This commit is contained in:
Elune
2019-12-23 16:09:22 +08:00
parent fafa2a7e06
commit d278dbf724
5 changed files with 5 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ export default {
},
// 提交前的验证
[CRUD.HOOK.afterValidateCU]() {
if (!this.form.pid) {
if (!this.form.pid && this.form.id !== 1) {
this.$message({
message: '上级部门不能为空',
type: 'warning'