Ver código fonte

fix: 修复Bug

bill 1 ano atrás
pai
commit
33b7f84df3
1 arquivos alterados com 1 adições e 1 exclusões
  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(