mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-25 01:21:55 +00:00
错误修复
This commit is contained in:
parent
179f65c306
commit
74495fb9e1
@ -49,7 +49,7 @@ let Data = {
|
|||||||
try {
|
try {
|
||||||
return JSON.parse(fs.readFileSync(`${root}/${file}`, 'utf8'))
|
return JSON.parse(fs.readFileSync(`${root}/${file}`, 'utf8'))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.err(`JSON数据错误: ${root}/${file}`)
|
console.error(`JSON数据错误: ${root}/${file}`)
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ let Data = {
|
|||||||
let data = await import(`file://${root}/${file}?t=${new Date() * 1}`)
|
let data = await import(`file://${root}/${file}?t=${new Date() * 1}`)
|
||||||
return data || {}
|
return data || {}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.err(`import module错误: ${root}/${file}`)
|
console.error(`import module错误: ${root}/${file}`)
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user