chore: 更新个人工作台和差旅报销相关功能

This commit is contained in:
caoxiaozhu
2026-05-19 17:24:13 +00:00
parent 54ffef66d3
commit 2574bc81d1
6 changed files with 14989 additions and 14022 deletions

View File

@@ -280,8 +280,21 @@ async function handleExpenseConversationAction() {
return
}
pendingAction.value = 'expense'
const nextPayload = buildAssistantPayload()
const shouldOpenImmediately = Boolean(nextPayload.prompt || nextPayload.files.length)
if (shouldOpenImmediately) {
emitAssistant({
...nextPayload,
conversation: null
})
void clearKnowledgeHistoryBeforeExpense().catch((error) => {
console.warn('Failed to clear knowledge history before expense:', error)
})
return
}
pendingAction.value = 'expense'
try {
await clearKnowledgeHistoryBeforeExpense()
@@ -1131,4 +1144,3 @@ watch(
}
}
</style>