为中英版编辑器的setTitle2函数补充type=2分支,调用parentWindow的setCouresTitle方法同步课程标题
@@ -398,6 +398,9 @@ const setTitle2 = (newTitle: string, type: number = 1) => {
if (type !== 2) {
changeCourse()
}
+ else {
+ parentWindow.setCouresTitle?.(courseTitle.value)
+ }
@@ -406,6 +406,9 @@ const setTitle2 = (newTitle: string, type: number = 1) => {