From 481b483ee416ca44ce6f9a746b517b28850e36cf Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 21 Sep 2025 19:22:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E3=80=90ai=20=E5=A4=A7=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E3=80=91=E9=80=89=E6=8B=A9=E8=A7=92=E8=89=B2=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=20tab=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ai/chat/index/components/role/RoleRepository.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/ai/chat/index/components/role/RoleRepository.vue b/src/views/ai/chat/index/components/role/RoleRepository.vue index e9bb2054..04113731 100644 --- a/src/views/ai/chat/index/components/role/RoleRepository.vue +++ b/src/views/ai/chat/index/components/role/RoleRepository.vue @@ -70,8 +70,11 @@ import { ChatRoleApi, ChatRolePageReqVO, ChatRoleVO } from '@/api/ai/model/chatR import { ChatConversationApi, ChatConversationVO } from '@/api/ai/chat/conversation' import { Search } from '@element-plus/icons-vue' import { TabsPaneContext } from 'element-plus' +import { useTagsViewStore } from '@/store/modules/tagsView' const router = useRouter() // 路由对象 +const { currentRoute } = useRouter() // 路由 +const { delView } = useTagsViewStore() // 视图操作 // 属性定义 const loading = ref(false) // 加载中 @@ -121,7 +124,7 @@ const getPublicRole = async (append?: boolean) => { name: search.value, publicStatus: true } - const { total, list } = await ChatRoleApi.getMyPage(params) + const { list } = await ChatRoleApi.getMyPage(params) if (append) { publicRoleList.value.push.apply(publicRoleList.value, list) } else { @@ -201,7 +204,8 @@ const handlerCardUse = async (role) => { const conversationId = await ChatConversationApi.createChatConversationMy(data) // 2. 跳转页面 - await router.push({ + delView(unref(currentRoute)) + await router.replace({ name: 'AiChat', query: { conversationId: conversationId