Browse Source

fix: 修复Bug

bill 1 year ago
parent
commit
33b7f84df3
1 changed files with 1 additions and 1 deletions
  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>();
 const ivalue = ref<ScenePoint>();
 watchEffect(() => {
 watchEffect(() => {
-  ivalue.value = { ...props.value };
+  ivalue.value = { ...props.value, name: props.value.name || "" };
 });
 });
 
 
 watch(
 watch(