Browse Source

Fix the bug `Edit User Info will always shows failed.` (#5627)

* Update createUser.vue

* Update createUser.vue
kyoty 3 years ago
parent
commit
0a5670f195

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

@@ -292,8 +292,9 @@
             this.userPassword = ''
             this.email = this.item.email
             this.phone = this.item.phone
+            this.state = this.item.state
             this.userState = this.item.state + '' || '1'
-            if (this.item.tenantId) {
+            if (this.item.tenantId === 0 || this.item.tenantId) {
               this.tenantId = this.item.tenantId
             }
             this.$nextTick(() => {
@@ -310,8 +311,9 @@
           this.userPassword = ''
           this.email = this.item.email
           this.phone = this.item.phone
+          this.state = this.item.state
           this.userState = this.state + '' || '1'
-          if (this.item.tenantId) {
+          if (this.item.tenantId === 0 || this.item.tenantId) {
             this.tenantId = this.item.tenantId
           }
           if (this.queueList.length > 0) {