Browse Source

Create or update users to add tenants cannot be empty verification. (#7594)

Kerwin 3 years ago
parent
commit
64efc65edf

+ 6 - 0
dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue

@@ -199,6 +199,12 @@
           }
         }
 
+        // Verify tenant
+        if (!this.tenantId) {
+          this.$message.warning(`${i18n.$t('select tenant')}`)
+          return false
+        }
+
         // email
         if (!this.email) {
           this.$message.warning(`${i18n.$t('Please enter email')}`)