mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-10 16:13:42 +08:00
完善个人中心
This commit is contained in:
@@ -37,6 +37,12 @@ export function renderNumber(num) {
|
||||
}
|
||||
}
|
||||
|
||||
export function getQuotaPerUnit() {
|
||||
let quotaPerUnit = localStorage.getItem('quota_per_unit');
|
||||
quotaPerUnit = parseFloat(quotaPerUnit);
|
||||
return quotaPerUnit;
|
||||
}
|
||||
|
||||
export function renderQuota(quota, digits = 2) {
|
||||
let quotaPerUnit = localStorage.getItem('quota_per_unit');
|
||||
let displayInCurrency = localStorage.getItem('display_in_currency');
|
||||
|
||||
Reference in New Issue
Block a user