Quellcode durchsuchen

Merge branch 'lixin' of gitadmin/tuoheng_lc_web into develop

pull/210/head
lixin vor 1 Jahr
Ursprung
Commit
15b4020d26
1 geänderte Dateien mit 2 neuen und 5 gelöschten Zeilen
  1. +2
    -5
      src/views/task-manage/all-task/components/LiveDrawer.vue

+ 2
- 5
src/views/task-manage/all-task/components/LiveDrawer.vue Datei anzeigen

@@ -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()

Laden…
Abbrechen
Speichern