From 6311944c2e79a632c0de21f6a3eca7567d527e85 Mon Sep 17 00:00:00 2001 From: wibus-wee <1596355173@qq.com> Date: Sun, 27 Feb 2022 20:24:14 +0800 Subject: [PATCH] perf(friends): change friends list API --- pages/friends/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/friends/index.tsx b/pages/friends/index.tsx index f0bf6ff..5db8f75 100644 --- a/pages/friends/index.tsx +++ b/pages/friends/index.tsx @@ -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 */ @@ -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),