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 eed178787b..53db31cb86 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 @@ -138,7 +138,8 @@ } }, props: { - item: Object + item: Object, + fromUserInfo: Boolean }, methods: { _ok () { @@ -294,7 +295,7 @@ this.phone = this.item.phone this.state = this.item.state this.userState = this.item.state + '' || '1' - if (this.item.tenantId === 0 || this.item.tenantId) { + if (this.fromUserInfo || this.item.tenantId) { this.tenantId = this.item.tenantId } this.$nextTick(() => { @@ -313,7 +314,7 @@ this.phone = this.item.phone this.state = this.item.state this.userState = this.state + '' || '1' - if (this.item.tenantId === 0 || this.item.tenantId) { + if (this.fromUserInfo || this.item.tenantId) { this.tenantId = this.item.tenantId } if (this.queueList.length > 0) { diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue index 220346b9c0..f0789019e3 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue @@ -60,7 +60,7 @@