|
@@ -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中,
|