feat: 对aide decide进行部分调整

This commit is contained in:
2025-12-15 02:42:40 +08:00
parent 1381e8c7cd
commit ee1468492a
6 changed files with 120 additions and 19 deletions

View File

@@ -14,6 +14,13 @@ async function init() {
AppState.source = data.source || "";
AppState.items = Array.isArray(data.items) ? data.items : [];
// 如果有推荐项,默认选中推荐项
AppState.items.forEach((item) => {
if (item.recommend) {
AppState.decisions[item.id] = item.recommend;
}
});
renderItems(data);
bindEvents();
} catch (error) {