diff --git a/src/layouts/LineLayout.vue b/src/layouts/LineLayout.vue index d09ceb8..36be66b 100644 --- a/src/layouts/LineLayout.vue +++ b/src/layouts/LineLayout.vue @@ -174,6 +174,11 @@ onMounted(async () => { } lineStore.addAllScene(projectInfo.mapInfoLinks || []); } + lineStore.setSceneName(sceneName); + scene = lineApp.getScene(sceneName); + scene.bindDom(dom); + scene.reload(); + onResize(); } catch (e) { const error = e as ApiError; $q.notify({ @@ -181,11 +186,6 @@ onMounted(async () => { message: error.title, }); } - lineStore.setSceneName(sceneName); - scene = lineApp.getScene(sceneName); - scene.bindDom(dom); - scene.reload(); - onResize(); } else { lineStore.setMapId(null); lineStore.setSimulationId(null);