fix: 上一题/下一题不再调 AI API,改为保存后关闭并推进索引

This commit is contained in:
2026-07-16 07:30:51 +08:00
parent 8ea2dd38d7
commit cfe906bb60
6 changed files with 40 additions and 9 deletions
+4 -1
View File
@@ -52,7 +52,10 @@ contextBridge.exposeInMainWorld('electronAPI', {
storeData: (data: any) => ipcRenderer.invoke('rubric:storeData', data),
getData: () => ipcRenderer.invoke('rubric:getData'),
exportJson: () => ipcRenderer.invoke('rubric:exportJson'),
importJson: () => ipcRenderer.invoke('rubric:importJson')
importJson: () => ipcRenderer.invoke('rubric:importJson'),
getNextIndex: () => ipcRenderer.invoke('rubric:getNextIndex'),
setNextIndex: (idx: number) => ipcRenderer.invoke('rubric:setNextIndex', idx),
resetNextIndex: () => ipcRenderer.invoke('rubric:resetNextIndex')
},
template: {