|
@@ -120,7 +120,10 @@ const ptzEnabled = computed(() => {
|
|
|
const ptzReason = computed(() => state.value.cleanupError ? '会话释放未确认,暂停控制' : PTZ_UNCONFIRMED)
|
|
const ptzReason = computed(() => state.value.cleanupError ? '会话释放未确认,暂停控制' : PTZ_UNCONFIRMED)
|
|
|
// Access mode and GB identifiers come straight from the binding; blanks show as a dash.
|
|
// Access mode and GB identifiers come straight from the binding; blanks show as a dash.
|
|
|
const ACCESS_TEXT = { GB28181: '国标接入', MANUAL: '手工接入' }
|
|
const ACCESS_TEXT = { GB28181: '国标接入', MANUAL: '手工接入' }
|
|
|
-const accessTypeText = computed(() => ACCESS_TEXT[state.value.device?.accessType] || state.value.device?.accessType || '—')
|
|
|
|
|
|
|
+const accessTypeText = computed(() => {
|
|
|
|
|
+ const type = state.value.device?.sourceType || state.value.device?.accessType
|
|
|
|
|
+ return ACCESS_TEXT[type] || type || '—'
|
|
|
|
|
+})
|
|
|
const gbText = computed(() => {
|
|
const gbText = computed(() => {
|
|
|
const device = state.value.device
|
|
const device = state.value.device
|
|
|
return device?.gbDeviceId || device?.gbChannelId
|
|
return device?.gbDeviceId || device?.gbChannelId
|