bill hai 8 meses
pai
achega
65bae16e93
Modificáronse 3 ficheiros con 6 adicións e 3 borrados
  1. 4 1
      src/components/path/sign.vue
  2. 1 1
      src/store/path.ts
  3. 1 1
      src/views/guide/path/edit-path.vue

+ 4 - 1
src/components/path/sign.vue

@@ -122,7 +122,10 @@ path.bus.on("linePositionChange", (position) => {
   emit("updateLinePosition", p);
 });
 
-onUnmounted(() => path.destory());
+onUnmounted(() => {
+  console.error(path, "destory");
+  path.destory();
+});
 defineExpose(path);
 </script>
 

+ 1 - 1
src/store/path.ts

@@ -29,7 +29,7 @@ export const getPath = (id: Path['id']) => paths.value.find(path => path.id ===
 
 export const getPathIsShow = (path: Path) => {
   if (!custom.showPaths) return false;
-  const modelIds = path.points.map(item => item.position.modelId)
+  const modelIds = path.points.map(item => item.modelId)
   if (path.linePosition?.modelId) {
     modelIds.push(path.linePosition.modelId)
   }

+ 1 - 1
src/views/guide/path/edit-path.vue

@@ -25,7 +25,7 @@
               <InputNumber
                 style="width: 120px"
                 v-model:value="data.lineWidth"
-                :max="100"
+                :max="10"
                 :min="1"
                 :controls="false"
               >