Merge branch 'main' into pr/Laisky/26

This commit is contained in:
Laisky.Cai
2025-01-22 03:37:03 +00:00
172 changed files with 3669 additions and 2344 deletions

View File

@@ -145,7 +145,7 @@ export function timestamp2string(timestamp) {
return year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second;
}
export function calculateQuota(quota, digits = 2) {
export function calculateQuota(quota = 0, digits = 2) {
let quotaPerUnit = localStorage.getItem('quota_per_unit');
quotaPerUnit = parseFloat(quotaPerUnit);