This commit is contained in:
zyronon
2024-05-24 18:54:32 +08:00
parent 3dc60a04ef
commit 693d4ff89a
2 changed files with 2 additions and 16 deletions

View File

@@ -32,18 +32,6 @@ function showAllWordModal() {
})
}
function resetChapterList(v: number) {
const temp = () => {
runtimeStore.editDict.chapterWordNumber = v
runtimeStore.editDict.chapterWords = chunk(runtimeStore.editDict.words, runtimeStore.editDict.chapterWordNumber)
}
if (runtimeStore.editDict.isCustom) {
} else {
temp()
}
}
onMounted(() => {
emitter.on(EventKey.openDictModal, (typ) => {
show = true
@@ -91,15 +79,14 @@ onMounted(() => {
class="my-slider"
:min="10"
:step="10"
:max="store.currentDict.words.length < 10 ? 10 : 500"
:max="store.currentStudyWordDict.words.length < 10 ? 10 : 500"
size="small"
v-model="chapterWordNumber"
@change="resetChapterList"
/>
</div>
<div class="notice">
<span class="text">最小:10</span>
<span class="text">最大:{{ store.currentDict.words.length < 10 ? 10 : 500 }}</span>
<span class="text">最大:{{ store.currentStudyWordDict.words.length < 10 ? 10 : 500 }}</span>
</div>
</div>
<div class="footer">

View File

@@ -28,7 +28,6 @@ const store = useBaseStore()
const settingStore = useSettingStore()
const runtimeStore = useRuntimeStore()
const {toggleTheme} = useTheme()
const practiceRef: any = $ref()
watch(practiceStore, () => {
if (practiceStore.inputWordNumber < 1) {