chore: 排查无界加载异常的问题
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user