修改地址

main
suixy 1 week ago
parent 3fe53d3bc8
commit 244797c859

@ -1168,7 +1168,9 @@ import {
getLocalPositionRelativeToP4, getLocalPositionRelativeToP4,
parseTime parseTime
} from '@/utils/tool' } 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 router = useRouter()
const date1 = ref([]) const date1 = ref([])
@ -1350,7 +1352,7 @@ const table1Current1 = (e,) => {
// ws // ws
const getSocket = () => { 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", () => { socket.addEventListener("open", () => {
// console.log(" WebSocket "); // console.log(" WebSocket ");
@ -2570,6 +2572,27 @@ onMounted(() => {
getShildTableList() getShildTableList()
getObstacleList() getObstacleList()
// testFun() // 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 = () => { const testFun = () => {
let areaData111 = [ let areaData111 = [

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

Loading…
Cancel
Save