This commit is contained in:
jxxghp
2023-11-06 11:42:13 +08:00
parent 52bbf65fa8
commit 315274abf9
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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": {
@@ -106,4 +106,4 @@
"resolutions": { "resolutions": {
"postcss": "8" "postcss": "8"
} }
} }
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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">