2026-02-02 14:12:23 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="test">
|
2026-02-05 15:26:34 +08:00
|
|
|
<p>Conversation Item - {{ id }}</p>
|
2026-02-26 11:45:32 +08:00
|
|
|
<button @click="openCanvas">打开画布</button>
|
2026-02-02 14:12:23 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2026-02-26 11:45:32 +08:00
|
|
|
import myEvent from '@/utils/myEvent'
|
|
|
|
|
import { computed, onMounted } from 'vue'
|
2026-02-05 10:45:02 +08:00
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
const id = computed(() => route.params.id)
|
2026-02-26 11:45:32 +08:00
|
|
|
const openCanvas = () => {
|
|
|
|
|
myEvent.emit('openFlowCanvas')
|
|
|
|
|
}
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
openCanvas();
|
|
|
|
|
})
|
2026-02-02 14:12:23 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.test {
|
2026-02-05 15:26:34 +08:00
|
|
|
margin: 2rem;
|
|
|
|
|
border-radius: 2rem;
|
|
|
|
|
background-color: rgb(242, 130, 90);
|
2026-02-02 14:12:23 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2026-02-26 11:45:32 +08:00
|
|
|
flex-direction: column;
|
|
|
|
|
> p {
|
|
|
|
|
font-size: 10rem;
|
|
|
|
|
}
|
2026-02-02 14:12:23 +08:00
|
|
|
}
|
|
|
|
|
</style>
|