mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-28 01:57:25 +08:00
fix: keep forced index modal open on generation failure
Move auto-close logic from finally to success path so the modal remains open for retry when generate() fails in force mode. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -97,12 +97,12 @@ async function generateSessionIndex() {
|
||||
hasIndex.value = true
|
||||
sessionCount.value = count
|
||||
emit('generated', count)
|
||||
forceMode.value = false
|
||||
isOpen.value = false
|
||||
} catch (error) {
|
||||
console.error('生成会话索引失败:', error)
|
||||
} finally {
|
||||
isGenerating.value = false
|
||||
forceMode.value = false
|
||||
isOpen.value = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user