Add word list panel sorting function

This commit is contained in:
zyronon
2023-12-03 01:49:33 +08:00
parent 1d8c880816
commit da25417f7a
6 changed files with 65 additions and 12 deletions

View File

@@ -136,8 +136,6 @@ export async function checkDictHasTranslate(dict: Dict) {
}))
}
}
}
//同步到我的词典列表
@@ -148,7 +146,7 @@ export function syncMyDictList(dict: Dict) {
if (isArticle(dict.type)) {
dict.length = dict.articles.length
} else {
dict.length = dict.words.length + dict.residueWords.length
dict.length = dict.words.length
}
let rIndex = store.myDictList.findIndex(v => v.id === dict.id)