Commit edcfe6ce by 张杰

紧急需求

1 parent ff56f44e
......@@ -76,13 +76,14 @@ export default {
// 获取位置信息
getLocation(sn) {
GET_DEVICE_LOCATION({ sns: sn }).then((res) => {
let obj = res.data || {};
if (res.code != 200) {
let obj = res.data ? res.data[0] : {};
if (res.returnCode != 0) {
return false;
}
let options = { ...obj };
options.elat = obj.lat;
options.elng = obj.lng;
console.log(options)
this.addLocation(options);
});
},
......
......@@ -41,7 +41,7 @@ module.exports = {
},
proxy: {
'/ots': {
target: 'http://e-shield.glsx.com.cn/ots/',
target: 'http://e-shield.dev.glsx.com.cn/ots/',
// target: 'http://192.168.3.181:8671/ots/',
changeOrigin: true,
ws: true,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!