From 7d5cd6c825e05acd73bb35b13ec18abd60c55b45 Mon Sep 17 00:00:00 2001 From: Wisp X <1591788658@qq.com> Date: Sat, 12 Mar 2022 23:36:24 +0800 Subject: [PATCH] fix a bug --- resources/views/admin/user/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/admin/user/index.blade.php b/resources/views/admin/user/index.blade.php index ef7e1633..55c18637 100644 --- a/resources/views/admin/user/index.blade.php +++ b/resources/views/admin/user/index.blade.php @@ -125,7 +125,7 @@ .replace(/__name__/g, user.name) .replace(/__email__/g, user.email) .replace(/__capacity__/g, utils.formatSize(user.capacity * 1024)) - .replace(/__surplus_capacity__/g, utils.formatSize(user.images_sum_size * 1024)) + .replace(/__surplus_capacity__/g, utils.formatSize((user.capacity - user.images_sum_size) * 1024)) .replace(/__image_num__/g, user.image_num) .replace(/__album_num__/g, user.album_num) .replace(/__registered_ip__/g, user.registered_ip || '-')