feat(web): update views and services

Views:
- AppShellRouteView.vue: update route view
- SettingsView.vue: update settings view
- TravelReimbursementCreateView.vue: update travel form view
- scripts/SettingsView.js: update settings view logic
- scripts/TravelReimbursementCreateView.js: update travel form logic

Services:
- services/orchestrator.js: update orchestrator service client
This commit is contained in:
caoxiaozhu
2026-05-12 06:40:19 +00:00
parent f6a5eeb620
commit c263fc9752
6 changed files with 561 additions and 89 deletions

View File

@@ -6,3 +6,21 @@ export function runOrchestrator(payload) {
body: JSON.stringify(payload)
})
}
export function fetchLatestConversation(userId) {
const params = new URLSearchParams({
user_id: String(userId || '').trim()
})
return apiRequest(`/orchestrator/conversations/latest?${params.toString()}`)
}
export function clearUserConversations(userId) {
const params = new URLSearchParams({
user_id: String(userId || '').trim()
})
return apiRequest(`/orchestrator/conversations?${params.toString()}`, {
method: 'DELETE'
})
}