Commit 8d4f3bc3 authored by 李翰林's avatar 李翰林

修改socketio地址

parent 0129ecd9
...@@ -20,10 +20,17 @@ import { ...@@ -20,10 +20,17 @@ import {
} from "./getData.js"; } from "./getData.js";
import { message } from "antd"; import { message } from "antd";
const { NODE_ENV } = process.env; const { NODE_ENV } = process.env;
// const websocketUrl =
// NODE_ENV == "development"
// ? "http://10.110.84.251:7001"
// : "http://10.110.84.251:7001";
// : `${window.location.protocol == "http:" ? "ws" : "wss"}://${
// window.location.host
// }`;
const websocketUrl = const websocketUrl =
NODE_ENV == "development" NODE_ENV == "development"
? "http://10.110.84.251:7001" ? "http://192.168.40.41"
: "http://10.110.84.251:7001"; : "http://192.168.40.41";
// : `${window.location.protocol == "http:" ? "ws" : "wss"}://${ // : `${window.location.protocol == "http:" ? "ws" : "wss"}://${
// window.location.host // window.location.host
// }`; // }`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment