wip
This commit is contained in:
@@ -253,9 +253,9 @@ export async function _getDictDataByUrl(
|
||||
type: DictType = DictType.word
|
||||
): Promise<Dict> {
|
||||
// await sleep(2000);
|
||||
let dictResourceUrl = `/dicts/${val.language}/word/${val.url}`
|
||||
let dictResourceUrl = `https://dicts.2study.top/dicts/${val.language}/word/${val.url}`
|
||||
if (type === DictType.article) {
|
||||
dictResourceUrl = `/dicts/${val.language}/article/${val.url}`
|
||||
dictResourceUrl = `https://dicts.2study.top/dicts/${val.language}/article/${val.url}`
|
||||
}
|
||||
let s = await fetch(resourceWrap(dictResourceUrl, val.version)).then(r => r.json())
|
||||
if (s) {
|
||||
|
||||
Reference in New Issue
Block a user