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

View File

@@ -0,0 +1,29 @@
import { app, page } from '../app';
import { message } from '@kevisual/system-ui/dist/message';
let isRender = false;
app
.route({
path: 'workspace',
key: 'enter',
run: async (ctx) => {
// 第一次进入页面获取用户信息如果没有登陆则去登陆TODO
// 只根据id来判断工作区。
const url = new URL(location.href);
const isWorksapce = url.pathname.startsWith('/workspace');
if (!isWorksapce) {
message.error('请先进入工作区');
return;
}
console.log('workspace enter');
if (!isRender) {
app.call({
path: 'wallnote',
key: 'render',
});
isRender = true;
}
ctx.body = '';
},
})
.addTo(app);