chore: 排查无界加载异常的问题

This commit is contained in:
wangxuefeng
2025-03-19 00:08:19 +08:00
parent a2d308bc1a
commit 9b39f265d3
12 changed files with 369 additions and 260 deletions

View File

@@ -35,6 +35,7 @@ onMounted(async () => {
const _engine = new Engine({
container,
service,
window,
project: {
// @ts-ignore
id: model.projectId,
@@ -48,7 +49,9 @@ onMounted(async () => {
widgetManager.set('Previewer', {
props: {
path: (block: any) => {
console.log('block', block);
const pathname = location.pathname;
console.log('pathname', pathname);
return `${pathname}#/preview/${block.id}`;
}
}
@@ -57,6 +60,10 @@ onMounted(async () => {
widgetManager.set('Templates', {
invisible: true
});
widgetManager.set('About', {
invisible: true
});
});
});
</script>
@@ -72,5 +79,6 @@ onMounted(async () => {
.designer-container {
width: 100%;
height: 100%;
min-height: calc(100vh - 126px);
}
</style>