1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 11:21:29 +00:00

Optimize avatar (#6991)

* update

* update2

* other

* other

* update

* update

* Update test_user_avatar.py

* Update migrate_avatars_fs2db.py

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
This commit is contained in:
awu0403
2024-11-11 10:29:52 +08:00
committed by GitHub
parent 2d005e98cd
commit f9b3e692ec
49 changed files with 121 additions and 227 deletions

View File

@@ -41,8 +41,7 @@ class FileAccessLog extends React.Component {
listFileAccessLog = (page) => {
const { repoID, filePath } = this.props;
const { perPage, items } = this.state;
const avatarSize = 24 * 2;
fileAccessLogAPI.listFileAccessLog(repoID, filePath, page, perPage, avatarSize).then((res) => {
fileAccessLogAPI.listFileAccessLog(repoID, filePath, page, perPage).then((res) => {
const { data: newItems } = res.data;
this.setState({
isLoading: false,