tremble 3 роки тому
батько
коміт
149375addc
2 змінених файлів з 13 додано та 12 видалено
  1. 11 11
      src/app.vue
  2. 2 1
      src/components/openVideo/index.vue

+ 11 - 11
src/app.vue

@@ -102,14 +102,14 @@ const resize = () => {
   }
 };
 
-watch(
-  () => hadVideo.value,
-  (val, old) => {
-    if (val) {
-      app.Scene.unlock();
-    }
-  }
-);
+// watch(
+//   () => hadVideo.value,
+//   (val, old) => {
+//     if (val) {
+//       app.Scene.unlock();
+//     }
+//   }
+// );
 
 watch(
   () => player.value.showMap,
@@ -289,9 +289,9 @@ onMounted(async () => {
     });
 
   app.use("TourPlayer");
-  if (!hadVideo.value) {
-    app.Scene.lock();
-  }
+  // if (!hadVideo.value) {
+  //   app.Scene.lock();
+  // }
   app.Scene.on("ready", () => {
     show.value = true;
   });

+ 2 - 1
src/components/openVideo/index.vue

@@ -67,7 +67,8 @@ onMounted(() => {
   bottom: 0;
   display: table;
   table-layout: fixed;
-  background-color: rgba(0, 0, 0, 0.5);
+  z-index: 110;
+  background-color: rgba(0, 0, 0, 1);
   .bofang {
     position: absolute;
     top: 50%;