src/views/fysp/task/components/CompTaskMap.vue
@@ -1,8 +1,25 @@ <template> <SceneMap></SceneMap> <div style="width: 70vw; height: 600px; background-color: aliceblue"> <SceneMap :data="scenes"></SceneMap> </div> </template> <script setup> import { computed } from 'vue'; const props = defineProps({ // 场景计划 plans: { type: Array, default: () => [] }, dayTasks: { type: Array, default: () => [] } }); </script> const scenes = computed(() => { return props.plans.map((p) => { return p.scene; }); }); </script>