@@ -212,7 +212,7 @@ export const createStepSlice: FeynmanSlice<StepSlice> = (set, get) => ({
212212 const wp = toConvert . find ( ( w ) => w . id === wpId ) ;
213213 if ( ! wp ) continue ;
214214 try {
215- await updateWithLog ( feynmanWeakPointStore , 'feynmanWeakPoints' , wpId , { ...wp , mastered : true } ) ;
215+ await updateWithLog ( feynmanWeakPointStore , 'feynmanWeakPoints' , wpId , { ...wp , mastered : true , converted : true } ) ;
216216 } catch {
217217 // 标记失败可接受:下次转换最多重复建该张卡
218218 }
@@ -224,7 +224,7 @@ export const createStepSlice: FeynmanSlice<StepSlice> = (set, get) => ({
224224 weakPoints : {
225225 ...state . weakPoints ,
226226 [ noteId ] : ( state . weakPoints [ noteId ] ?? [ ] ) . map ( ( w ) =>
227- createdWpIds . includes ( w . id ! ) ? { ...w , mastered : true } : w ,
227+ createdWpIds . includes ( w . id ! ) ? { ...w , mastered : true , converted : true } : w ,
228228 ) ,
229229 } ,
230230 } ) ) ;
@@ -234,7 +234,7 @@ export const createStepSlice: FeynmanSlice<StepSlice> = (set, get) => ({
234234 // 全部创建成功:统一标记已掌握(逐条容错,失败汇总提示)
235235 const failedMarks : string [ ] = [ ] ;
236236 for ( const wp of toConvert ) {
237- const updated = { ...wp , mastered : true } ;
237+ const updated = { ...wp , mastered : true , converted : true } ;
238238 try {
239239 await updateWithLog ( feynmanWeakPointStore , 'feynmanWeakPoints' , wp . id ! , updated ) ;
240240 } catch {
@@ -250,7 +250,7 @@ export const createStepSlice: FeynmanSlice<StepSlice> = (set, get) => ({
250250 weakPoints : {
251251 ...state . weakPoints ,
252252 [ noteId ] : ( state . weakPoints [ noteId ] ?? [ ] ) . map ( ( w ) =>
253- weakPointIds . includes ( w . id ! ) ? { ...w , mastered : true } : w ,
253+ weakPointIds . includes ( w . id ! ) ? { ...w , mastered : true , converted : true } : w ,
254254 ) ,
255255 } ,
256256 } ) ) ;
0 commit comments