Browse Source

修复技术圈主页关注的问题

xiaozhen 6 years ago
parent
commit
6bae8b08d0
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 1 1
      pages/community/user/_id.vue

+ 1 - 0
.gitignore

@@ -96,3 +96,4 @@ build/Release
 # https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
 node_modules
 
+yarn.lock

+ 1 - 1
pages/community/user/_id.vue

@@ -125,7 +125,7 @@ export default {
   methods: {
     async getDetail() {
       let res = await http.get(`/api/user/getUserInfo?id=${this.$route.params.id}&page=1&size=10`)
-      console.log(res.data)
+      res.data.has_follow=parseInt(res.data.has_follow);
       if(res) {
         this.idInfo = res.data
       }