浏览代码

Use username not id

sbkwgh 8 年之前
父节点
当前提交
ba09a6c77f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/AvatarIcon.vue

+ 1 - 1
src/components/AvatarIcon.vue

@@ -35,7 +35,7 @@
 				if(this.ajaxUser) return
 
 				this.axios
-					.get('/api/v1/user/' + this.user.id)
+					.get('/api/v1/user/' + this.user.username)
 					.then((res) => {
 						this.ajaxUser = res.data
 					})