Commit edcfe6ce by 张杰

紧急需求

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