chore: 更新个人工作台和差旅报销相关功能
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -280,8 +280,21 @@ async function handleExpenseConversationAction() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
pendingAction.value = 'expense'
|
|
||||||
const nextPayload = buildAssistantPayload()
|
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 {
|
try {
|
||||||
await clearKnowledgeHistoryBeforeExpense()
|
await clearKnowledgeHistoryBeforeExpense()
|
||||||
@@ -1131,4 +1144,3 @@ watch(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<PersonalWorkbench :show-header="false" @open-assistant="emit('openAssistant', $event)" />
|
<PersonalWorkbench
|
||||||
|
:show-header="false"
|
||||||
|
:assistant-modal-open="assistantModalOpen"
|
||||||
|
@open-assistant="emit('openAssistant', $event)"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import PersonalWorkbench from '../components/business/PersonalWorkbench.vue'
|
import PersonalWorkbench from '../components/business/PersonalWorkbench.vue'
|
||||||
|
|
||||||
|
defineProps({
|
||||||
|
assistantModalOpen: { type: Boolean, default: false }
|
||||||
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['openAssistant'])
|
const emit = defineEmits(['openAssistant'])
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user