Update StorageCard.vue to display a more informative toast message

This commit is contained in:
jxxghp
2024-11-07 19:18:43 +08:00
parent 1f4dacff02
commit 8afed9768d

View File

@@ -56,7 +56,7 @@ function openStorageDialog() {
rcloneConfigDialog.value = true rcloneConfigDialog.value = true
break break
default: default:
$toast.info('此存储类型无需配置参数') $toast.info('此存储类型无需配置参数,请直接配置目录!')
break break
} }
} }
@@ -90,7 +90,7 @@ const progressColor = computed(() => {
// 计算存储使用率 // 计算存储使用率
const usage = computed(() => { const usage = computed(() => {
return Math.round(((used.value) / (total.value || 1)) * 1000) / 10 return Math.round((used.value / (total.value || 1)) * 1000) / 10
}) })
// 查询存储信息 // 查询存储信息