main
suixy 2 weeks ago
parent 1cd29af790
commit e205e6e6d6

@ -67,8 +67,10 @@ button:focus-visible {
}
#app {
width: 1080px;
min-width: 1080px;
width: 100%;
overflow-x: hidden;
/*width: 1080px;*/
/*min-width: 1080px;*/
margin: 0 auto;
}

@ -4,7 +4,7 @@ import { ElMessage } from "element-plus";
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8';
const service = axios.create({
baseURL: '/dev-api', timeout: 100000
baseURL: import.meta.env.PROD ? 'https://www.scrin.xyz/prod-api' : '/dev-api', timeout: 100000
});
service.interceptors.request.use(config => {

@ -1350,7 +1350,8 @@ const table1Current1 = (e,) => {
// ws
const getSocket = () => {
const socket = new WebSocket("ws://192.168.1.123:7789/ws");
// const socket = new WebSocket("ws://192.168.1.123:7789/ws");
const socket = import.meta.env.MODE === 'development' ? new WebSocket("ws://192.168.1.123:7789/ws") : new WebSocket("wss://www.scrin.xyz/ws");
socket.addEventListener("open", () => {
console.log("✅ WebSocket 连接成功");
@ -2640,8 +2641,9 @@ watch(() => JSON.stringify([tableData1.value, areaPoints.value]), (oldVal, newVa
</script>
<style lang="less">
.app-container {
width: 1080px;
min-width: 1080px;
width: 100%;
//width: 1080px;
//min-width: 1080px;
height: 100vh;
margin: 0 auto;
}
@ -2696,6 +2698,7 @@ watch(() => JSON.stringify([tableData1.value, areaPoints.value]), (oldVal, newVa
.left {
display: inline-block;
height: calc(100vh - 80px);
min-height: 56vw;
width: 34%;
vertical-align: top;
position: relative;
@ -2719,6 +2722,7 @@ watch(() => JSON.stringify([tableData1.value, areaPoints.value]), (oldVal, newVa
padding: 20px 20px 0 20px;
display: inline-block;
height: calc(100vh - 80px - 20px);
min-height: 56vw;
width: calc(66% - 40px);
background-color: #F6F7FB;
overflow: auto;

Loading…
Cancel
Save