[Snow Team] frontend-fixer-2: auto-commit work
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
import { fetchPostRentalNotice, type PostRentalNotice } from '@/features/orders/api/orders'
|
||||
import { formatDateMinute } from '@/utils/time'
|
||||
import { uploadFile } from '@/shared/api/files'
|
||||
import { formatMoney } from '@/shared/utils/money'
|
||||
import { formatCent, formatMoney } from '@/shared/utils/money'
|
||||
|
||||
const session = useSessionStore()
|
||||
const router = useRouter()
|
||||
@@ -101,7 +101,7 @@ onMounted(() => {
|
||||
async function loadBalance() {
|
||||
try {
|
||||
const wallet = await fetchWalletBalance()
|
||||
balance.value = wallet.available_balance
|
||||
balance.value = wallet.available_balance_cent
|
||||
} catch {
|
||||
// 失败静默处理,显示为默认0
|
||||
}
|
||||
@@ -418,7 +418,7 @@ function resolveAvatarURL(url: string | undefined | null) {
|
||||
<span class="ledger-time">{{ formatDateMinute(item.created_at) }}</span>
|
||||
</div>
|
||||
<div class="ledger-right" :class="item.direction === 'in' ? 'in-color' : 'out-color'">
|
||||
{{ item.direction === 'in' ? '+' : '-' }}¥{{ formatMoney(item.amount) }}
|
||||
{{ item.direction === 'in' ? '+' : '-' }}¥{{ formatCent(item.amount_cent) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user