删除之前的定位图标\登录获取防区数据
This commit is contained in:
parent
0be84825b8
commit
3d69411481
|
|
@ -95,6 +95,11 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
updateMapPosition(lng, lat) {
|
||||
// 移除旧的 positionLayer(如果存在)
|
||||
if (this.positionLayer) {
|
||||
window.olMap.removeLayer(this.positionLayer);
|
||||
this.positionLayer = null;
|
||||
}
|
||||
let center = fromLonLat([lng, lat]);
|
||||
var iconFeature = new Feature({
|
||||
geometry: new Point(center),
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ export default {
|
|||
// localStorage.setItem("PositionIds", res.data.PositionIds); // 阵地权限
|
||||
this.$router.push("/");
|
||||
let arrParams = res.data.positionIds;
|
||||
loginPosition(arrParams).then((positionRes) => {
|
||||
loginPosition([arrParams]).then((positionRes) => {
|
||||
if (positionRes.code === 0) {
|
||||
localStorage.setItem("PositionIds", positionRes.data); // 阵地权限
|
||||
this.$message.success("登录成功");
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ module.exports = defineConfig({
|
|||
productionSourceMap: false,
|
||||
transpileDependencies: true,
|
||||
devServer: {
|
||||
host: "192.168.79.70",
|
||||
host: "0.0.0.0",
|
||||
port: 9997,
|
||||
open: true,
|
||||
proxy: {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue