修改地址

main
suixy 2 months ago
parent 244797c859
commit 23ed064115

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

Loading…
Cancel
Save