Kaynağa Gözat

个人信息展示

dmy 5 yıl önce
ebeveyn
işleme
f7d84b813f

+ 1 - 1
_src/components/popup/otherInfo/index.js

@@ -18,7 +18,7 @@ otherInfo.install = function (Vue, store, router) {
       },
       data () {
         return {
-          visible: true,
+          visible: false,
           userId
         }
       }

+ 2 - 2
_src/components/popup/otherInfo/index.vue

@@ -114,13 +114,13 @@ export default {
     }
   },
   created () {
-    this.userInfo = this.members[this.userId]
-    console.log(this.userInfo)
     API.user.getOtherInfo({
       target_id: this.userId,
       group_id: this.groupId || null
     }).then(({ data }) => {
       this.accountList = data.data.binds
+      this.userInfo = data.data
+      this.visible = true
     })
   }
 }