修改地址

main
suixy 2 months ago
parent 244797c859
commit 23ed064115

@ -1168,8 +1168,8 @@ import {
getLocalPositionRelativeToP4,
parseTime
} from '@/utils/tool'
import {ScreenOrientation} from '@capacitor/screen-orientation';
import { StatusBar, Style } from '@capacitor/status-bar';
// import {ScreenOrientation} from '@capacitor/screen-orientation';
// import { StatusBar, Style } from '@capacitor/status-bar';
const formUrl = 'http://192.168.1.123:5000/'
const router = useRouter()
@ -2573,24 +2573,24 @@ onMounted(() => {
getObstacleList()
// testFun()
function lockLandscapeIfSmallWidth() {
const w = window.innerWidth;
if (w < 700) {
//
ScreenOrientation.lock({orientation: 'landscape'});
StatusBar.hide();
} else {
//
ScreenOrientation.unlock();
StatusBar.show();
StatusBar.setStyle({ style: Style.Default });
}
}
//
lockLandscapeIfSmallWidth();
//
// function lockLandscapeIfSmallWidth() {
// const w = window.innerWidth;
//
// if (w < 700) {
// //
// ScreenOrientation.lock({orientation: 'landscape'});
// StatusBar.hide();
// } else {
// //
// ScreenOrientation.unlock();
// StatusBar.show();
// StatusBar.setStyle({ style: Style.Default });
// }
// }
//
// //
// lockLandscapeIfSmallWidth();
})

Loading…
Cancel
Save