Explorar o código

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

xiaozhen %!s(int64=6) %!d(string=hai) anos
pai
achega
6bae8b08d0
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  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
       }