Commit ae3be04e authored by 纪泽龙's avatar 纪泽龙

更改infowindowComponent的判断

parent 27abfa50
/*
* @Author: your name
* @Date: 2022-01-11 13:45:12
* @LastEditTime: 2022-03-01 17:25:23
* @LastEditTime: 2022-03-02 10:53:47
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js
......@@ -510,7 +510,8 @@ export class EditorMap {
// 如果infowindow是打开的,就改变里面的数据,必须是用户才行
if (
this.infowindowComponent &&
this.infowindowComponent.deviceData.iconType == 6
this.infowindowComponent.deviceData.iconType == 6 &&
this.infowindowComponent.deviceData.userId == obj.userId
) {
this.infowindowComponentChange(obj);
}
......@@ -552,7 +553,8 @@ export class EditorMap {
// 如果infowindow是打开的
if (
this.infowindowComponent &&
this.infowindowComponent.deviceData.iconType == 6
this.infowindowComponent.deviceData.iconType == 6 &&
this.infowindowComponent.deviceData.userId == obj.userId
) {
this.infowindowComponentChange(deviceData);
}
......
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