Sfoglia il codice sorgente

Merge branch 'develop' of gitadmin/tuoheng_lc_web into master

master
lixin 1 anno fa
parent
commit
a2f9a2e542
1 ha cambiato i file con 2 aggiunte e 5 eliminazioni
  1. +2
    -5
      src/views/task-manage/all-task/components/LiveDrawer.vue

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

</template> </template>


<script> <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 { Map, View, Feature } from 'ol'
import 'ol/ol.css' import 'ol/ol.css'
import { Tile, Vector as VectorLayer } from 'ol/layer' import { Tile, Vector as VectorLayer } from 'ol/layer'
initOriginPlayer() initOriginPlayer()
} }
if (!data.mapData) { if (!data.mapData) {
initMap()
// 加载机场航线 // 加载机场航线
getLineData().then(({ trackList }) => { getLineData().then(({ trackList }) => {
if (trackList.length > 0) { if (trackList.length > 0) {
data.videoShow = value data.videoShow = value
} }


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

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

Loading…
Annulla
Salva