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

@@ -185,7 +185,7 @@ export const CHANNEL_OPTIONS = {
value: 45,
color: 'primary'
},
45: {
46: {
key: 46,
text: 'Replicate',
value: 46,

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);

View File

@@ -13,7 +13,7 @@ const LogTableHead = ({ userIsAdmin }) => {
<TableCell>模型</TableCell>
<TableCell>提示</TableCell>
<TableCell>补全</TableCell>
<TableCell>额度</TableCell>
<TableCell>费用</TableCell>
<TableCell>详情</TableCell>
</TableRow>
</TableHead>