Browse Source

fix

pull/3/MERGE
break60 4 years ago
parent
commit
098db69f69
  1. 4
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue
  2. 2
      dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js
  3. 2
      dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js

4
dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue

@ -155,8 +155,8 @@
let userNameLength = this.userName.length
// user name
if (userNameLength<3 && userNameLength>60) {
this.$message.warning(`${i18n.$t('User name length is between 3 and 60')}`)
if (userNameLength<3 && userNameLength>39) {
this.$message.warning(`${i18n.$t('User name length is between 3 and 39')}`)
return false
}
if (!this.userName.replace(/\s*/g,"")) {

2
dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js

@ -595,5 +595,5 @@ export default {
'Please delete all non-existent resources': 'Please delete all non-existent resources',
'The Worker group no longer exists, please select the correct Worker group!': 'The Worker group no longer exists, please select the correct Worker group!',
'Please confirm whether the workflow has been saved before downloading': 'Please confirm whether the workflow has been saved before downloading',
'User name length is between 3 and 60': 'User name length is between 3 and 60'
'User name length is between 3 and 39': 'User name length is between 3 and 39'
}

2
dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js

@ -595,5 +595,5 @@ export default {
'Please delete all non-existent resources': '请删除所有未授权或已删除资源',
'The Worker group no longer exists, please select the correct Worker group!': '该Worker分组已经不存在请选择正确的Worker分组',
'Please confirm whether the workflow has been saved before downloading': '下载前请确定工作流是否已保存',
'User name length is between 3 and 60': '用户名长度在360之间'
'User name length is between 3 and 39': '用户名长度在339之间'
}

Loading…
Cancel
Save