地图绘制代码调整
This commit is contained in:
parent
acd3e5c6ff
commit
dc1ccfe699
@ -259,7 +259,7 @@ export function updateForList(model, state, lstName) {
|
|||||||
const list = state.map[lstName];
|
const list = state.map[lstName];
|
||||||
if (list && list instanceof Array) {
|
if (list && list instanceof Array) {
|
||||||
const i = list.findIndex(elem => elem.code == model.code );
|
const i = list.findIndex(elem => elem.code == model.code );
|
||||||
if (list[i] < 0) {
|
if (i < 0) {
|
||||||
list.push(deepClone(model)); // 新增
|
list.push(deepClone(model)); // 新增
|
||||||
} else {
|
} else {
|
||||||
if (model._dispose) {
|
if (model._dispose) {
|
||||||
|
Loading…
Reference in New Issue
Block a user