소스 검색

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

xiaozhen 7 년 전
부모
커밋
6bae8b08d0
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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
       }