fix: fix bug, upgrade version

This commit is contained in:
Kaiyi 2023-09-10 16:45:25 +08:00
parent 9e4a8189ca
commit 47bfb7e8b7
4 changed files with 901 additions and 876 deletions

View File

@ -2,7 +2,7 @@
"name": "qwerty-learner",
"displayName": "Qwerty Learner",
"description": "为 Coder 设计的单词记忆与英语肌肉记忆锻炼软件 摸🐟版",
"version": "0.3.2",
"version": "0.3.3",
"publisher": "kaiyi",
"icon": "docs/logo.png",
"engines": {

View File

@ -1,9 +1,8 @@
import { dictionaries } from './resource/dictionary'
import { DictPickItem } from './typings/index'
import * as vscode from 'vscode'
import cet4 from './assets/CET4_T.json'
import { range } from 'lodash'
import { compareWord, getConfig, getDictFile } from './utils'
import { getConfig } from './utils'
import { soundPlayer } from './sound'
import { voicePlayer } from './resource/voice'
import PluginState from './utils/PluginState'

View File

@ -191,17 +191,10 @@ export default class PluginState {
}
prevWord() {
if (this.order === 0) {
if (this.chapter === 0) {
this.chapter = this.totalChapters - 1
} else {
this.chapter -= 1
}
this.order = this.chapterLength - 1
} else {
if (this.order > 0) {
this.order -= 1
this.currentExerciseCount = 0
}
this.currentExerciseCount = 0
}
nextWord() {

1761
yarn.lock

File diff suppressed because it is too large Load Diff