个人主页-组织-sort

This commit is contained in:
caishi 2021-12-16 16:08:13 +08:00
parent b3dec1ee8e
commit 1954a4f8d3
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ function Team(props){
const [ list ,setList ] = useState(undefined);
const [ page ,setPage ] = useState(1);
const [ total ,setTotal ] = useState(0);
const [ sort_direction , setSort_direction ] = useState("asc");
const [ sort_direction , setSort_direction ] = useState("desc");
const [ sort_by ,setSort_by ] = useState("created_at");
const [ search ,setSearch ] = useState(undefined);
const { checkIfLogin , showLoginDialog , current_user } = props;
@ -42,7 +42,7 @@ function Team(props){
}
const menu = (
<Menu onClick={(e)=>setSort_by(e.key)}>
<Menu.Item value="created_at" key="created_at">更新时间排序</Menu.Item>
<Menu.Item value="created_at" key="created_at">创建时间排序</Menu.Item>
<Menu.Item value="num_projects" key="num_projects">项目数排序</Menu.Item>
<Menu.Item value="num_users" key="num_users">用户数排序</Menu.Item>
</Menu>