diff --git a/src/utils/index.ts b/src/utils/index.ts index 3bc904e5..1884641f 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -253,9 +253,9 @@ export async function _getDictDataByUrl( type: DictType = DictType.word ): Promise { // 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) {