Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
perf(friends): change friends list API
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Feb 27, 2022
1 parent ce1cdc7 commit 6311944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/friends/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author: Wibus
* @Date: 2022-02-12 14:11:01
* @LastEditors: Wibus
* @LastEditTime: 2022-02-12 22:19:16
* @LastEditTime: 2022-02-27 20:23:06
* Coding With IU
*/

Expand Down Expand Up @@ -461,7 +461,7 @@ const FriendsLists: NextPage = (anyProps: any) => {
}

FriendsLists.getInitialProps = async (ctx: any) => {
const data = await $axios.get(`friends/list`).then( (res) => {
const data = await $axios.get(`friends/list?type=true-all`).then( (res) => {
return {
id: res.data.map((item: { id: string; }) => item.id),
name: res.data.map((item: { name: string; }) => item.name),
Expand Down

0 comments on commit 6311944

Please sign in to comment.