diff --git a/src/views/home/agent/components/Item.vue b/src/views/home/agent/components/Item.vue index 2be8682..923013a 100644 --- a/src/views/home/agent/components/Item.vue +++ b/src/views/home/agent/components/Item.vue @@ -125,9 +125,10 @@ import type { CustomAttrs } from '@crazydos/vue-markdown' import rehypeRaw from 'rehype-raw' import MyEvent from '@/utils/myEvent' - import { useUserInfoStore } from '@/stores' + import { useUserInfoStore,useProjectStore } from '@/stores' const userStore = useUserInfoStore() + const projectStore = useProjectStore() const { t, locale } = useI18n() @@ -285,7 +286,7 @@ // 点击显示来源 } const handleClickSketch = () => { - MyEvent.emit('openSketch') + MyEvent.emit('openSketch',projectStore.state.id) } const showStop = ref(false)