Browse Source

更新地址

master
luyisha 3 years ago
parent
commit
3c640615d1
  1. 4
      public/config.js
  2. 2
      src/views/cultrue/index.vue
  3. 2
      src/views/index.vue
  4. 2
      src/views/ty/index.vue

4
public/config.js

@ -2,5 +2,7 @@ window.publicConfig={
BASE_API:"http://192.168.66.16/api", BASE_API:"http://192.168.66.16/api",
// BASE_API:"http://10.97.121.2/api", // BASE_API:"http://10.97.121.2/api",
// socket url // socket url
WS_URL: 'ws://10.97.121.2/ws' WS_URL_TY: 'ws://10.97.121.2/ty',
WS_URL_WH: 'ws://10.97.121.2/wh',
WS_URL_ZL: 'ws://10.97.121.2/zl'
} }

2
src/views/cultrue/index.vue

@ -890,7 +890,7 @@ export default {
// //
getsckdata(){ getsckdata(){
let that = this; let that = this;
ws = new WebSocket("ws://192.168.66.16/wh"); ws = new WebSocket(publicConfig.WS_URL_WH);
ws.onopen = function() {}; ws.onopen = function() {};
// //
ws.onclose = function(event) { ws.onclose = function(event) {

2
src/views/index.vue

@ -935,7 +935,7 @@ export default {
getsckdata(){ getsckdata(){
let that = this; let that = this;
// websocket // websocket
ws = new WebSocket("ws://192.168.66.16/zl"); ws = new WebSocket(publicConfig.WS_URL_ZL);
ws.onopen = function() { ws.onopen = function() {
// console.log("ws connected success!") // console.log("ws connected success!")
}; };

2
src/views/ty/index.vue

@ -911,7 +911,7 @@ export default {
// //
getsckdata(){ getsckdata(){
let that = this; let that = this;
ws = new WebSocket("ws://192.168.66.16/ty"); ws = new WebSocket(publicConfig.WS_URL_TY);
ws.onopen = function() {}; ws.onopen = function() {};
// //
ws.onclose = function(event) { ws.onclose = function(event) {

Loading…
Cancel
Save