fix: 修复 MSD ISO/FLASH 挂载识别错误;完善错误提示

This commit is contained in:
mofeng-git
2026-07-26 22:59:27 +08:00
parent 27c8da9a75
commit 376dc97134
24 changed files with 1703 additions and 522 deletions

View File

@@ -572,7 +572,7 @@ const msdQuickInfo = computed(() => {
const msd = systemStore.msd
if (!msd?.available) return ''
if (msd.mountedCount === 0) return t('statusCard.msdStandby')
return `${msd.diskMode === 'single' ? t('msd.singleDiskMode') : t('msd.multiDiskMode')} · ${t('msd.mediaCount', { count: msd.mountedCount, capacity: msd.slotCapacity })}`
return msd.diskMode === 'single' ? t('msd.singleDiskMode') : t('msd.multiDiskMode')
})
const msdErrorMessage = computed(() => {
@@ -605,18 +605,6 @@ const msdDetails = computed<StatusDetail[]>(() => {
status: msd.mountedCount > 0 ? 'ok' : undefined
})
if (msd.mountedMedia.length > 0) {
for (const media of msd.mountedMedia) {
details.push({
label: media.kind === 'drive' ? t('statusCard.msdDriveMode') : t('statusCard.msdCurrentImage'),
value: media.kind === 'drive'
? t('statusCard.msdDriveMode')
: `${media.name || media.id || t('statusCard.msdNoImage')} (${media.cdrom ? t('msd.cdrom') : t('msd.flash')})`,
status: 'ok'
})
}
}
return details
})