Skip to content

Commit dad005d

Browse files
authored
Merge pull request #5 from ShouChenICU/dev
1、修复现代文件访问检测报错问题
2 parents 0834cab + 5113127 commit dad005d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

components/NavBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ onMounted(() => {
3636
<img src="/favicon.webp" alt="web camera" class="size-6 mr-2" />
3737
<div>
3838
<span>WebCamera</span>
39-
<span class="ml-2 text-xs">v0.1.1</span>
39+
<span class="ml-2 text-xs">v0.1.2</span>
4040
</div>
4141
</NuxtLink>
4242

pages/monitor.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const rtcNode = shallowRef<RTCNode>()
4444
let stateJobId: any
4545
let watchDogJonId: any
4646
47+
const isModernFileAPISupport = ref(false)
48+
4749
const isRecordSettingModalOpen = ref(false)
4850
const isRecording = ref(false)
4951
const recordingStartTime = ref(0)
@@ -336,6 +338,7 @@ onMounted(() => {
336338
if (recordMimeTypes.length > 0) {
337339
recordSetting.value.mimeType = recordMimeTypes[0]
338340
}
341+
isModernFileAPISupport.value = isModernFileAPIAvailable()
339342
})
340343
341344
onUnmounted(() => {
@@ -429,7 +432,7 @@ onUnmounted(() => {
429432
>{{ $t('btn.stopRec') }}</UButton
430433
>
431434
</div>
432-
<div v-show="!isModernFileAPIAvailable()" class="text-xs">
435+
<div v-show="!isModernFileAPISupport" class="text-xs">
433436
<span class="text-red-500">*</span>{{ $t('hint.recHint') }}
434437
</div>
435438
</div>

0 commit comments

Comments
 (0)