|
@@ -93,7 +93,6 @@ export default {
|
|
let hotspots = rootState.base.baseInfo.workHotList;
|
|
let hotspots = rootState.base.baseInfo.workHotList;
|
|
if (hotspots.length && !state.hotspotList.length) {
|
|
if (hotspots.length && !state.hotspotList.length) {
|
|
state.hotspotList = hotspots;
|
|
state.hotspotList = hotspots;
|
|
- console.error(state.hotspotList);
|
|
|
|
}
|
|
}
|
|
if (state.hotspotList.length) {
|
|
if (state.hotspotList.length) {
|
|
state.hotspotList.forEach((item, index) => {
|
|
state.hotspotList.forEach((item, index) => {
|
|
@@ -159,12 +158,10 @@ export default {
|
|
},
|
|
},
|
|
mutations: {
|
|
mutations: {
|
|
SetHotspot(state, data) {
|
|
SetHotspot(state, data) {
|
|
- console.error(data);
|
|
|
|
state.hotspot = data;
|
|
state.hotspot = data;
|
|
this.commit("BackupHotSpot", browser.CloneObject(data));
|
|
this.commit("BackupHotSpot", browser.CloneObject(data));
|
|
},
|
|
},
|
|
updateHotspot(state, payload) {
|
|
updateHotspot(state, payload) {
|
|
- console.error(payload.id);
|
|
|
|
if (payload.id) {
|
|
if (payload.id) {
|
|
// 编辑
|
|
// 编辑
|
|
state.hotspotList.forEach((item, index) => {
|
|
state.hotspotList.forEach((item, index) => {
|
|
@@ -183,13 +180,11 @@ export default {
|
|
state.hotspotList.push(payload);
|
|
state.hotspotList.push(payload);
|
|
}
|
|
}
|
|
|
|
|
|
- console.error(state.hotspotList);
|
|
|
|
},
|
|
},
|
|
processData(state, payload) {
|
|
processData(state, payload) {
|
|
// state.hotspot.content = {};
|
|
// state.hotspot.content = {};
|
|
let list = state.hotspotList;
|
|
let list = state.hotspotList;
|
|
list.forEach((item) => {
|
|
list.forEach((item) => {
|
|
- console.error(item);
|
|
|
|
if (!item.content) {
|
|
if (!item.content) {
|
|
item.content = {};
|
|
item.content = {};
|
|
}
|
|
}
|
|
@@ -216,7 +211,6 @@ export default {
|
|
delete item[value];
|
|
delete item[value];
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- console.error(state.hotspotList, list);
|
|
|
|
},
|
|
},
|
|
},
|
|
},
|
|
actions: {
|
|
actions: {
|
|
@@ -275,7 +269,6 @@ export default {
|
|
return hasTag;
|
|
return hasTag;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- console.error(state.hotspotList, list);
|
|
|
|
// $waiting.hide();
|
|
// $waiting.hide();
|
|
// return;
|
|
// return;
|
|
let data = { list, workId: rootState.base.baseInfo.workId };
|
|
let data = { list, workId: rootState.base.baseInfo.workId };
|