feat: update new feature temp for panel

This commit is contained in:
2025-03-04 01:20:55 +08:00
parent 6e96247b50
commit fd3288cb5b
45 changed files with 2559 additions and 954 deletions

39
template/index.ts Normal file
View File

@@ -0,0 +1,39 @@
import { app, page, load } from './app';
import './ai-app/main';
import './tailwind.css';
import './workspace/entry';
page.addPage('/', 'workspace');
const runLoad = () => {
load.load(
() => {
// @TODO 这里需要优化,不能每次都去调用
page.subscribe(
'workspace',
async () => {
await app.call({
path: 'workspace',
key: 'enter',
});
setTimeout(() => {
app.call({
path: 'ai',
key: 'render',
});
}, 1000);
},
{ runImmediately: true },
);
},
{
key: 'workspaceRoute',
isReRun: true,
checkSuccess: () => {
return page.pageModule.has('workspace');
},
},
);
};
// runLoad()