bugfix: 切换对话的图片生成

This commit is contained in:
2026-04-02 17:04:35 +08:00
parent 3d642eb33f
commit 7e41da5ec8
2 changed files with 73 additions and 25 deletions

View File

@@ -128,8 +128,10 @@
previewType.value = 'url'
}
const handleOpenSketch = () => {
previewType.value = 'sketch'
const handleOpenSketch = (id) => {
if (id === route.params.id) {
previewType.value = 'sketch'
}
}
watch(
@@ -145,7 +147,6 @@
)
onMounted(() => {
console.log('11111agentindex')
MyEvent.add('openReport', handleOpenReport)
MyEvent.add('openUrls', handleOpenUrls)
MyEvent.add('openSketch', handleOpenSketch)
@@ -157,7 +158,7 @@
onUnmounted(() => {
MyEvent.remove('openReport', handleOpenReport)
MyEvent.remove('openUrls', handleOpenUrls)
MyEvent.remove('OpenSketch')
MyEvent.remove('OpenSketch', handleOpenSketch)
})
</script>