模拟主题数据

This commit is contained in:
chen wei bo
2025-09-02 11:33:55 +08:00
parent 9396e70700
commit aacd18ee21
5 changed files with 69 additions and 29 deletions
@@ -25,6 +25,20 @@ export class ThemeConfig extends BaseConfig {
return ConfigManager.tables.TbThemes;
}
/**
* 获取所有配置 id,如果存在
*/
public getAllId(): any | null {
let allData = this.getAllConfig();
if (!allData) return null;
const dataArr = allData.getDataList();
let allId = [];
for (let oneData of dataArr) {
allId.push(oneData.id);
}
return allId;
}
/**
* 获取配置,根据 id
*/