Commit 4ccf90a3 authored by “yiyousong”'s avatar “yiyousong”

pref:修改站点id获取

parent 5df4c48b
......@@ -45,7 +45,7 @@ export default {
},
serviceInfo: {
homeUrl: "http://192.168.0.24:8080/#/",
serverUrl: "http://10.12.185.213:11098",
serverUrl: "http://192.168.0.98:11078",
},
};
this.WebSocketMq(obj);
......
......@@ -69,7 +69,7 @@ export default {
},
data() {
return {
api: local.getLocal("baseUrl") + "/",
api: local.getLocal("serverUrl") + "/",
row: 4,
};
},
......
......@@ -192,9 +192,12 @@ export default {
WebSocketMq(objc) {
var obj = objc.rabbmitInfo; //mq信息
var serviceInfo = objc.serviceInfo; //服务器信息
var deviceInfo = objc.deviceInfo; //设备信息
var serverUrl = serviceInfo.serverUrl; //系统地址
var siteId = deviceInfo.siteId; //站点id
// 保存地址
local.setLocal("serverUrl", serverUrl);
local.setLocal("siteId", siteId);
// 初始化接口
setTimeout(() => {
// 查询站点信息
......
......@@ -109,9 +109,7 @@ export default {
},
data() {
return {
api: local.getLocal("baseUrl")
? local.getLocal("baseUrl") + "/"
: "http://192.168.0.98:11078/",
api: local.getLocal("serverUrl"),
matterInfo: this.$route.query,
materailsList: [],
active: 0,
......
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