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