diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/_source/createQueue.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/_source/createQueue.vue index 659cec4b87..46be94c4f9 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/_source/createQueue.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/_source/createQueue.vue @@ -117,11 +117,11 @@ } }, _verification () { - if (!this.queueName) { + if (!this.queueName.replace(/\s*/g,"")) { this.$message.warning(`${i18n.$t('Please enter name')}`) return false } - if (!this.queue) { + if (!this.queue.replace(/\s*/g,"")) { this.$message.warning(`${i18n.$t('Please enter queue value')}`) return false } diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/_source/createTenement.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/_source/createTenement.vue index 9f39b5eb01..4847af8827 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/_source/createTenement.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/_source/createTenement.vue @@ -132,7 +132,7 @@ _verification () { let isEn = /^[0-9a-zA-Z_.-]{1,}$/ - if (!this.tenantCode) { + if (!this.tenantCode.replace(/\s*/g,"")) { this.$message.warning(`${i18n.$t('Please enter the tenant code in English')}`) return false } @@ -140,7 +140,7 @@ this.$message.warning(`${i18n.$t('Please enter tenant code in English')}`) return false } - if (!this.tenantName) { + if (!this.tenantName.replace(/\s*/g,"")) { this.$message.warning(`${i18n.$t('Please enter name')}`) return false } diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue index 2166385ad0..43e8319216 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue @@ -154,7 +154,7 @@ let regPhone = /^1(3|4|5|6|7|8)\d{9}$/; // eslint-disable-line // user name - if (!this.userName) { + if (!this.userName.replace(/\s*/g,"")) { this.$message.warning(`${i18n.$t('Please enter user name')}`) return false } diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/createWarning.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/createWarning.vue index f9ea2e617a..c2ca85e970 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/createWarning.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/createWarning.vue @@ -101,7 +101,7 @@ }, _verification () { // group name - if (!this.groupName) { + if (!this.groupName.replace(/\s*/g,"")) { this.$message.warning(`${i18n.$t('Please enter group name')}`) return false }