liushengqiang 2 years ago
parent
commit
8a8218315f

+ 2 - 2
src/page-instrument/view-figner/index.module.less

@@ -66,7 +66,7 @@
     border: none;
     background: none;
     cursor: pointer;
-    z-index: 20;
+    z-index: 200;
 
     img {
         height: 22px;
@@ -418,7 +418,7 @@
     display: flex;
     justify-content: center;
     align-items: center;
-    z-index: 10;
+    z-index: 100;
     background: rgba(0, 0, 0, .6);
 }
 

+ 3 - 10
src/page-instrument/view-figner/index.tsx

@@ -87,7 +87,7 @@ export default defineComponent({
 
 		if (!props.isComponent) {
 			if (fingerData.fingeringInfo.orientation === 0) {
-				fingerData.fingeringInfo.orientation = 1;
+				api_setRequestedOrientation(fingerData.fingeringInfo.orientation);
 			}
 		}
 
@@ -117,13 +117,6 @@ export default defineComponent({
 			console.log("🚀 ~ subject:", subject);
 			fingerData.subject = await getFingeringConfig(subject);
 
-			setTimeout(() => {
-				if (!props.isComponent) {
-					if (fingerData.fingeringInfo.orientation === 1) {
-						api_setRequestedOrientation(fingerData.fingeringInfo.orientation);
-					}
-				}
-			}, 2000);
 		};
 		const createAudio = (url: string) => {
 			return new Promise((resolve) => {
@@ -190,8 +183,8 @@ export default defineComponent({
 				emit("close");
 				return;
 			} else {
-				if (fingerData.fingeringInfo.orientation === 1) {
-					api_setRequestedOrientation(0);
+				if (fingerData.fingeringInfo.orientation === 0) {
+					api_setRequestedOrientation(1);
 				}
 			}
 			// 不在APP中,