feat: 初始化画个标仓库 - AI驱动设计系统(BYOK模式) - 224源/371504图标+25海报源+130技能
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* 画个标 · 应用入口(纯智能设计模式)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
function boot() {
|
||||
// 初始化 Store(恢复本地缓存的项目名等)
|
||||
HGB_Store.init(true);
|
||||
|
||||
// 初始化智能设计工作台 UI
|
||||
HGB_UI.init();
|
||||
|
||||
// 顶栏项目名初始同步
|
||||
const nameInput = document.getElementById('project-name');
|
||||
if (nameInput && HGB_Store.get().name) {
|
||||
nameInput.value = HGB_Store.get().name;
|
||||
}
|
||||
}
|
||||
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', boot);
|
||||
} else {
|
||||
boot();
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user