|
|
@@ -41,7 +41,7 @@ import { airportList } from '@/api/dashboard/index.js' |
|
|
|
import { getTaskList } from '@/api/task/index.js' |
|
|
|
import { missionLive } from '@/api/dashboard/index.js' |
|
|
|
import VideoPlayer from '@/components/VideoPlayer/index.vue' |
|
|
|
import { ref, reactive, computed, watch, toRefs, nextTick } from 'vue' |
|
|
|
import { ref, reactive, onUnmounted, watch, toRefs, nextTick } from 'vue' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'TaskCard', |
|
|
@@ -318,6 +318,14 @@ export default { |
|
|
|
} |
|
|
|
}, { deep: true }) |
|
|
|
|
|
|
|
onUnmounted(() => { |
|
|
|
clearTimeout(data.originDebounce) |
|
|
|
data.originDebounce = null |
|
|
|
originRef.value?.disposeVideo() |
|
|
|
clearTimeout(data.analyseDebounce) |
|
|
|
data.analyseDebounce = null |
|
|
|
analyseRef.value?.disposeVideo() |
|
|
|
}) |
|
|
|
return { |
|
|
|
...toRefs(data), |
|
|
|
originRef, |