From c1f6a9971ecd834346a6c471de93d420018376b8 Mon Sep 17 00:00:00 2001 From: Wen-ace <731564934@qq.com> Date: Sun, 24 Mar 2024 15:48:38 +0800 Subject: [PATCH] feat: sync title --- components/ui-components/tickets/Chat.vue | 5 ++++- components/ui-components/tickets/TicketCard.vue | 1 + store/ticket.ts | 8 ++++++++ tools/request.ts | 4 +++- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/components/ui-components/tickets/Chat.vue b/components/ui-components/tickets/Chat.vue index e544dd6..ee45d82 100644 --- a/components/ui-components/tickets/Chat.vue +++ b/components/ui-components/tickets/Chat.vue @@ -114,6 +114,9 @@ const getTicketChatList = (id: string) => { }) } const ticketsStore = useTicketStore() +const title = computed(() => { + return ticketsStore.currentTicket.name +}) watch(() => ticketsStore.currentSessionId, (id) => { if (id) { @@ -125,7 +128,7 @@ watch(() => ticketsStore.currentSessionId, (id) => {