save local after save remote
This commit is contained in:
@@ -502,6 +502,14 @@ function addStepToPhase(phaseText) {
|
|||||||
console.error(err);
|
console.error(err);
|
||||||
alert('保存失败,请重试');
|
alert('保存失败,请重试');
|
||||||
}
|
}
|
||||||
|
CURRENT.raw.lesson = updatedLesson
|
||||||
|
CURRENT.raw.prompt = updatedPrompt
|
||||||
|
CURRENT.raw.score = updatedScore
|
||||||
|
|
||||||
|
CURRENT.parsed.lesson = parseHeadings(CURRENT.raw.lesson)
|
||||||
|
CURRENT.parsed.prompt = parseHeadings(CURRENT.raw.prompt)
|
||||||
|
CURRENT.parsed.score = parseHeadings(CURRENT.raw.score)
|
||||||
|
CURRENT.outline = buildUnifiedOutline(CURRENT.parsed.lesson, CURRENT.parsed.prompt, CURRENT.parsed.score);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新对应步骤的内容
|
// 更新对应步骤的内容
|
||||||
|
|||||||
Reference in New Issue
Block a user