This commit is contained in:
zyronon
2023-12-04 16:20:34 +08:00
parent 747a0dcea4
commit 479489bda0
3 changed files with 5 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ function checkDataChange() {
let r = await editArticleRef.save('save')
if (r) resolve(true)
},
() => void 0,
() => resolve(true),
)
}
} else {
@@ -90,7 +90,7 @@ function checkDataChange() {
let r = await editArticleRef.save('save')
if (r) resolve(true)
},
() => void 0,
() => resolve(true),
)
}
}

View File

@@ -15,7 +15,7 @@ import {useSettingStore} from "@/stores/setting.ts";
import {usePracticeStore} from "@/stores/practice.ts";
import {useRuntimeStore} from "@/stores/runtime.ts";
import {$ref} from "vue/macros";
import {ShortcutKey} from "@/types.ts";
import {DictType, ShortcutKey} from "@/types.ts";
import ChapterName from "@/components/toolbar/ChapterName.vue";
import {emitter, EventKey} from "@/utils/eventBus.ts";
@@ -69,7 +69,7 @@ watch(() => store.load, n => {
{{ store.currentDict.name }} {{ practiceStore.repeatNumber ? ' 复习错词' : '' }}
</div>
</Tooltip>
<ChapterName/>
<ChapterName v-if="store.currentDict.type === DictType.word"/>
<div class="info-text" v-if="practiceStore.repeatNumber">
复习错词
</div>