浏览代码

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(