代码调整

This commit is contained in:
dong 2023-10-23 16:15:51 +08:00
parent 40061eef03
commit c9c2478fcd

View File

@ -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);