guhongwei 4 anni fa
parent
commit
e3b49ff06a
1 ha cambiato i file con 0 aggiunte e 5 eliminazioni
  1. 0 5
      src/views/userCenter/user/index.vue

+ 0 - 5
src/views/userCenter/user/index.vue

@@ -48,11 +48,6 @@ export default {
     async searchInfo() {
     async searchInfo() {
       if (this.user.role == '4' || this.user.role == '5' || this.user.role == '7') {
       if (this.user.role == '4' || this.user.role == '5' || this.user.role == '7') {
         let res = await this.fetch(this.user.userid);
         let res = await this.fetch(this.user.userid);
-        if (this.user.userid) {
-          let res = await this.fetch(this.user.userid);
-        } else {
-          let res = await this.fetch(this.user.uid);
-        }
         if (res.errcode === 0) {
         if (res.errcode === 0) {
           this.$set(this, `form`, res.data);
           this.$set(this, `form`, res.data);
         }
         }