This commit is contained in:
Zyronon
2026-01-07 01:20:28 +08:00
parent ad25308720
commit d7d0bb89b2

View File

@@ -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) {