feat: 低代码平台增加应用列表

This commit is contained in:
wangxuefeng
2025-03-04 14:46:19 +08:00
parent 09ff94c188
commit 6fc133bb7d
24 changed files with 798 additions and 785 deletions

View File

@@ -11,18 +11,25 @@ import { getFile } from './io';
const lowCodeService = new LowCodeService();
onMounted(() => {
const handshake = new Postmate.Model({});
handshake.then(parent => {
parent.emit('sync-context', 'Hello, World!');
});
});
const model = {
name: '',
applicationId: -1,
projectId: -1,
fileId: '',
url: '',
}
const { data: file, isFetching } = useQuery({
queryKey: ['getFile'],
queryFn: async () => {
return getFile('45tnbgeme');
await handshake.then(parent => {
parent.emit('sync-context', 'Hello, World!');
Object.assign(model, parent.model);
console.log('model', model);
});
return getFile(model.fileId);
},
});
@@ -40,7 +47,7 @@ const { provider, onReady } = createProvider({
// runtime: 'web',
service: lowCodeService,
project: {
id: '2'
id: '4'
},
});