Browse Source

app进入竖屏

liushengqiang 2 năm trước cách đây
mục cha
commit
f23efd4927
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      src/page-instrument/view-figner/index.tsx

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

@@ -86,9 +86,10 @@ export default defineComponent({
 		});
 		if (!props.isComponent){
 			console.log(fingerData.fingeringInfo.orientation)
-			// if (fingerData.fingeringInfo.orientation === 0){
-			// 	api_setRequestedOrientation(fingerData.fingeringInfo.orientation);
-			// }
+			if (fingerData.fingeringInfo.orientation === 0){
+				// api_setRequestedOrientation(fingerData.fingeringInfo.orientation);
+				fingerData.fingeringInfo.orientation = 1
+			}
 		}
 		const getNotes = () => {
 			const fignerData = FIGNER_INSTRUMENT_DATA[data.subject as keyof typeof FIGNER_INSTRUMENT_DATA];