소스 검색

fix: 修复Bug

bill 1 년 전
부모
커밋
33b7f84df3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/point-input.vue

+ 1 - 1
src/components/point-input.vue

@@ -75,7 +75,7 @@ const emit = defineEmits<{
 
 const ivalue = ref<ScenePoint>();
 watchEffect(() => {
-  ivalue.value = { ...props.value };
+  ivalue.value = { ...props.value, name: props.value.name || "" };
 });
 
 watch(