diff --git a/src/components/common/custom-module/custom-location/index.vue b/src/components/common/custom-module/custom-location/index.vue index 17103951..17e30357 100644 --- a/src/components/common/custom-module/custom-location/index.vue +++ b/src/components/common/custom-module/custom-location/index.vue @@ -2,7 +2,7 @@
定位设置
- + @@ -56,6 +56,14 @@ const location_y_change = (val: number) => { data_location.value.record_y = val; data_location.value.staging_y = val }; +// 数据源id变化时,更新记录的数据,避免出现清空之后为undefined的情况 +const data_follow_id_change = (val: string) => { + if (!isEmpty(val)) { + data_follow.value.id = val; + } else { + data_follow.value.id = ''; + } +}; // 跟随id发生变化时的处理 watch(() => data_follow.value, (val) => { diff --git a/src/components/common/custom-module/data-rendering/index.vue b/src/components/common/custom-module/data-rendering/index.vue index 284cea7e..e9677e73 100644 --- a/src/components/common/custom-module/data-rendering/index.vue +++ b/src/components/common/custom-module/data-rendering/index.vue @@ -1,7 +1,7 @@