|
|
|
@ -86,8 +86,8 @@ |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<span>池状态</span> |
|
|
|
<strong>{{ pool.status === 'active' ? '有效' : (pool.status || '—') }}</strong> |
|
|
|
<small>{{ pool.status || '—' }}</small> |
|
|
|
<strong>{{ pool.status === 'active' ? '有效' : (pool.status === 'inactive' ? '失效' : (pool.status || '—')) }}</strong> |
|
|
|
<small>{{ pool.status === 'active' ? '有效' : (pool.status === 'inactive' ? '失效' : (pool.status || '—')) }}</small> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -518,7 +518,7 @@ const purchaseColumns = [ |
|
|
|
async function loadPool() { |
|
|
|
poolMissing.value = false |
|
|
|
try { |
|
|
|
pool.value = await request.get(urls.ADMIN_TRAFFIC_POOL) |
|
|
|
pool.value = await request.get(urls.ADMIN_TRAFFIC_POOL, { skipErrorToast: true }) |
|
|
|
} catch (e) { |
|
|
|
if (e.status === 404 || /资源不存在|not found/i.test(e.message || '')) { |
|
|
|
pool.value = null |
|
|
|
@ -543,7 +543,7 @@ async function loadPurchases() { |
|
|
|
totalText: bytesToGbText(p.totalBytes), |
|
|
|
costText: `¥${Number(p.totalCost || 0).toFixed(2)}`, |
|
|
|
expiresAt: fmtTime(p.expiresAt), |
|
|
|
statusName: p.status === 'active' ? '有效' : (p.status || '—'), |
|
|
|
statusName: p.status === 'active' ? '有效' : (p.status === 'inactive' ? '失效' : (p.status || '—')), |
|
|
|
remark: p.remark || '', |
|
|
|
createdAt: fmtTime(p.createdAt), |
|
|
|
raw: p |
|
|
|
|