修改地址

main
suixy 3 days ago
parent 3fe53d3bc8
commit 244797c859

@ -1168,7 +1168,9 @@ import {
getLocalPositionRelativeToP4,
parseTime
} from '@/utils/tool'
const formUrl = 'https://192.168.1.123:5000/'
import {ScreenOrientation} from '@capacitor/screen-orientation';
import { StatusBar, Style } from '@capacitor/status-bar';
const formUrl = 'http://192.168.1.123:5000/'
const router = useRouter()
const date1 = ref([])
@ -1350,7 +1352,7 @@ const table1Current1 = (e,) => {
// ws
const getSocket = () => {
const socket = new WebSocket("wss://192.168.1.123:7789/ws");
const socket = new WebSocket("ws://192.168.1.123:7789/ws");
socket.addEventListener("open", () => {
// console.log(" WebSocket ");
@ -2570,6 +2572,27 @@ onMounted(() => {
getShildTableList()
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();
})
const testFun = () => {
let areaData111 = [

@ -11,7 +11,7 @@ export default defineConfig({
// target: 'http://192.168.1.123:5000',
// target: 'http://192.168.0.105:5000',
// target: 'http://192.168.0.13:5000',
target: 'https://192.168.1.123:5000',
target: 'http://192.168.1.123:5000',
changeOrigin: true,
ws: true,
secure: false,

Loading…
Cancel
Save