feat:save

This commit is contained in:
zyronon
2025-07-22 00:14:51 +08:00
parent 60c0273e15
commit ba1dbdfbb1
10 changed files with 81 additions and 132 deletions

View File

@@ -288,7 +288,7 @@ export function _parseLRC(lrc: string): { start: number, end: number, text: stri
return parsed;
}
export async function _getDictDataByUrl(val: DictResource) {
export async function _getDictDataByUrl(val: DictResource): Promise<Dict> {
let dictResourceUrl = `./dicts/${val.language}/word/${val.url}`.replace('.json', '_v2.json');
let s = await getDictFile(dictResourceUrl)
let words = cloneDeep(s.map(v => {