fix(frontend): include cookie_count and cookie_names in AuthCaptureDialog emit

This commit is contained in:
liumangmang
2026-06-02 10:07:32 +08:00
parent 0b1daf277b
commit f4d16a4c01
@@ -152,7 +152,7 @@ const props = defineProps<{
const emit = defineEmits<{
(e: 'update:modelValue', v: boolean): void
(e: 'select', candidate: { type: string; value: string; source: string; cookie_name?: string; cookie_value?: string; new_api_user?: string }): void
(e: 'select', candidate: { type: string; value: string; source: string; cookie_name?: string; cookie_value?: string; cookie_count?: number; cookie_names?: string[]; new_api_user?: string }): void
}>()
function candidatePreview(candidate: AuthCaptureCandidate): string {
@@ -459,6 +459,8 @@ async function confirmSelection() {
source: fullCandidate.source,
cookie_name: fullCandidate.cookie_name,
cookie_value: fullCandidate.cookie_value,
cookie_count: fullCandidate.cookie_count,
cookie_names: fullCandidate.cookie_names,
new_api_user: resolveNewApiUser(rawResult.data, fullCandidate),
})
closeDialog()