Browse Source

添加用户

huangb 7 years ago
parent
commit
4b43ea6757
1 changed files with 7 additions and 2 deletions
  1. 7 2
      components/mobile/staffManagement/StaffAdd.vue

+ 7 - 2
components/mobile/staffManagement/StaffAdd.vue

@@ -108,14 +108,12 @@
     },
     computed: {
       userInfo () {
-        console.log(this.$store.state.option.user.data)
         return this.$store.state.option.user.data
       }
     },
     mounted () {
       this.$nextTick(() => {
         window.addEventListener('click', () => {
-          console.log(1)
           this.showChooseSex = false
         }, false)
       })
@@ -242,6 +240,13 @@
               this.reBindError = false
               this.illegalError = false
             }
+          }).catch (err =>{
+            if (err) {
+              this.showSearchUser = false
+              this.bindUser = false
+              this.reBindError = false
+              this.illegalError = false
+            }
           })
         }
       },