Jelajahi Sumber

录制隐藏下方操作栏

tangning 8 jam lalu
induk
melakukan
6039651ee5
1 mengubah file dengan 6 tambahan dan 5 penghapusan
  1. 6 5
      src/view/newFireCase/newFireDetails/components/shot.vue

+ 6 - 5
src/view/newFireCase/newFireDetails/components/shot.vue

@@ -1,5 +1,5 @@
 <template>
-  <teleport :to="appEl" v-if="appEl">dasdad
+  <teleport :to="appEl" v-if="appEl">
     <Toolbar :showBottomBar="showBottomBar" class="shot-ctrl">
       <el-button type="primary" class="btn" @click="close">取消</el-button>
       <el-button
@@ -76,6 +76,7 @@ const stream = ref(null)
 // 开始录屏
 const startRecording = async () => {
       console.log('startRecording')
+      showBottomBar.value = false
   try {
     // 获取屏幕流(包含音频选项)
     stream.value = await navigator.mediaDevices.getDisplayMedia({
@@ -300,11 +301,11 @@ watch([blobs, props], async () => {
     }
     if (!initial) {
       initial = true;
-      if(isFirefox){
+      // if(isFirefox){
         startRecording();
-      }else{
-        start();
-      }
+      // }else{
+      //   start();
+      // }
     }
   },
   { immediate: true }