Allow yourself to add favorite words and articles for practice
This commit is contained in:
@@ -273,7 +273,6 @@ export function getSplitTranslateText(article: string) {
|
||||
export function isArticle(type: DictType): boolean {
|
||||
return [
|
||||
DictType.article,
|
||||
DictType.customArticle
|
||||
].includes(type)
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,6 @@ export async function checkDictHasTranslate(dict: Dict) {
|
||||
let dictResourceUrl = `./dicts/${dict.language}/${dict.type}/${dict.translateLanguage}/${dict.url}`;
|
||||
if ([
|
||||
DictType.word,
|
||||
DictType.customWord,
|
||||
].includes(dict.type)) {
|
||||
if (!dict.originWords.length) {
|
||||
let r = await fetch(dictResourceUrl)
|
||||
@@ -129,7 +128,6 @@ export async function checkDictHasTranslate(dict: Dict) {
|
||||
|
||||
if ([
|
||||
DictType.article,
|
||||
DictType.customArticle,
|
||||
].includes(dict.type)) {
|
||||
if (!dict.articles.length) {
|
||||
let r = await fetch(dictResourceUrl)
|
||||
|
||||
Reference in New Issue
Block a user