Browse Source

Merge branch 'develop' of gitadmin/tuoheng_lc_web into master

master
lixin 1 year ago
parent
commit
a2f9a2e542
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      src/views/task-manage/all-task/components/LiveDrawer.vue

+ 2
- 5
src/views/task-manage/all-task/components/LiveDrawer.vue View File

@@ -41,7 +41,7 @@
</template>

<script>
import { defineComponent, computed, ref, reactive, toRefs, watch, nextTick, onBeforeUnmount, onMounted } from 'vue'
import { defineComponent, computed, ref, reactive, toRefs, watch, nextTick, onBeforeUnmount } from 'vue'
import { Map, View, Feature } from 'ol'
import 'ol/ol.css'
import { Tile, Vector as VectorLayer } from 'ol/layer'
@@ -195,6 +195,7 @@ export default defineComponent({
initOriginPlayer()
}
if (!data.mapData) {
initMap()
// 加载机场航线
getLineData().then(({ trackList }) => {
if (trackList.length > 0) {
@@ -367,10 +368,6 @@ export default defineComponent({
data.videoShow = value
}

onMounted(() => {
initMap()
})

onBeforeUnmount(() => {
liveStore.resetList()
originRef.value?.disposeVideo()

Loading…
Cancel
Save