mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
fix ui
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "moviepilot",
|
"name": "moviepilot",
|
||||||
"version": "1.4.0",
|
"version": "1.4.0-1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"bin": "dist/service.js",
|
"bin": "dist/service.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export function formatFileSize(bytes: number) {
|
|||||||
if (bytes < 0)
|
if (bytes < 0)
|
||||||
throw new Error('字节数不能为负数。')
|
throw new Error('字节数不能为负数。')
|
||||||
|
|
||||||
const units = ['B', 'K', 'M', 'G', 'T']
|
const units = ['B', 'KB', 'MB', 'GB', 'TB']
|
||||||
let size = bytes
|
let size = bytes
|
||||||
let unitIndex = 0
|
let unitIndex = 0
|
||||||
|
|
||||||
|
|||||||
@@ -89,10 +89,10 @@ onUnmounted(() => {
|
|||||||
<VCardText class="pt-4">
|
<VCardText class="pt-4">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-h5 me-2">
|
<p class="text-h5 me-2">
|
||||||
↑{{ formatFileSize(downloadInfo.upload_speed) }}B/s
|
↑{{ formatFileSize(downloadInfo.upload_speed) }}/s
|
||||||
</p>
|
</p>
|
||||||
<p class="text-h4 me-2">
|
<p class="text-h4 me-2">
|
||||||
↓{{ formatFileSize(downloadInfo.download_speed) }}B/s
|
↓{{ formatFileSize(downloadInfo.download_speed) }}/s
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<VList class="card-list mt-9">
|
<VList class="card-list mt-9">
|
||||||
|
|||||||
Reference in New Issue
Block a user