refactor: core

This commit is contained in:
linyuchen committed 2024-04-26 13:55:35 +08:00
1 parent 20dec19bfe
commit 0ff5b4e90b
56 files changed
+111 -129

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ class Config implements OB11Config {
console.log('get config', jsonData);
Object.assign(this, jsonData);
// eslint-disable-next-line
} catch (e) {
} catch (e: any) {
if (e instanceof SyntaxError) {
console.error(`配置文件 ${ob11ConfigPath} 格式错误,请检查配置文件:`, e.message);
}else{