diff --git a/src/components/content/tunnelScene/TunnelScene.vue b/src/components/content/tunnelScene/TunnelScene.vue index 6b5bfcd..77738bb 100644 --- a/src/components/content/tunnelScene/TunnelScene.vue +++ b/src/components/content/tunnelScene/TunnelScene.vue @@ -5,7 +5,7 @@ + :pointGap="pointGap" /> params.tunnelLength, + (now) => { + params.tunnelLength = now + console.log(params.tunnelLength); + pointGap = now / 20 + }, + { deep: true } +) + +let pointGap = reactive(params.tunnelLength); + + onMounted(handleMounted); // 挂载后回调 async function handleMounted() { + const doms = [info.value.$el, edit.value.$el]; demo = new ThreeDScene(three, content.value); //看是不是预览模式,然后继续相关的操作(会在demo中的初始化中进行) @@ -108,6 +127,8 @@ async function handleMounted() { type: "warning", }); } + + } // 每个模型加载回调 diff --git a/src/views/edit/edit.vue b/src/views/edit/edit.vue index 2d42d6a..8998112 100644 --- a/src/views/edit/edit.vue +++ b/src/views/edit/edit.vue @@ -1,115 +1,122 @@ - - - - - - 保存 + + + + + + 保存 + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file