更新术语表

This commit is contained in:
xief
2025-07-04 14:45:57 +08:00
parent 1954f8d612
commit fd68920e01
3 changed files with 29 additions and 2 deletions

View File

@@ -6,6 +6,18 @@ export class ConfigBase {
version:string = '1.0.0';
[key: string]: any;
/**
* 加载反序列化数据
* @param data
*/
load(data:Record<string,unknown>){
for (const key of Object.getOwnPropertyNames(this).filter(i=>i[0]!=='_')) {
if(data[key]!=undefined){
this[key] = data[key];
}
}
}
/**
* 序列化json方法
* @returns