diff --git a/client/src/lib/luxsinApi.ts b/client/src/lib/luxsinApi.ts index 4fcd1a0..7b18690 100644 --- a/client/src/lib/luxsinApi.ts +++ b/client/src/lib/luxsinApi.ts @@ -294,6 +294,8 @@ export interface PeqSoftPayload { // ============================================================ // Input/Output Labels // ============================================================ +/** 蓝牙输入的协议索引,与 IOPage 输入选项一致。 */ +export const INPUT_BLUETOOTH_INDEX = 4; export const INPUT_LABELS = ["USB", "USB-C", "Coaxial", "Optical", "Bluetooth", "IIS", "RCA"]; export const OUTPUT_LABELS = ["XLR", "RCA", "Headset", "XLR/RCA"]; export const LANGUAGE_LABELS = ["English", "繁體中文", "简体中文"]; diff --git a/client/src/pages/Home.tsx b/client/src/pages/Home.tsx index 3b9e10b..b29839b 100644 --- a/client/src/pages/Home.tsx +++ b/client/src/pages/Home.tsx @@ -23,7 +23,13 @@ import { AlertDialogHeader, AlertDialogTitle, } from "@/components/ui/alert-dialog"; -import { getHeadphoneMaxVolumeDb, getHomeVolumeMax, INPUT_LABELS, OUTPUT_LABELS } from "@/lib/luxsinApi"; +import { + getHeadphoneMaxVolumeDb, + getHomeVolumeMax, + INPUT_BLUETOOTH_INDEX, + INPUT_LABELS, + OUTPUT_LABELS, +} from "@/lib/luxsinApi"; import { cn } from "@/lib/utils"; import { ChevronRight, @@ -786,7 +792,7 @@ export default function Home() { )} {/* Bluetooth info */} - {ds.bt_status !== 0 && ( + {ds.input === INPUT_BLUETOOTH_INDEX && ds.bt_status !== 0 && (