优化数据发送逻辑,确保使用原始数据对象,并增加 props.data 变化的日志记录
Some checks failed
/ build-and-deploy-to-vercel (push) Successful in 3m19s
/ lint-build-and-check (push) Successful in 4m46s
/ playwright (push) Failing after 6m22s
/ surge (push) Successful in 2m36s

This commit is contained in:
严浩
2025-04-09 18:17:00 +08:00
parent 318fa4ea33
commit 2290dc2edf
2 changed files with 16 additions and 3 deletions

View File

@ -6,11 +6,22 @@ definePage({
},
});
const data: Array<[number, number]> = [
type ConstellationDiagramArr = Array<[number, number]>;
const data = ref<ConstellationDiagramArr>([
[0.20898877234451796, 0.8329353515647436],
[-0.6589349632101078, 0.5886313023998213],
[-0.5525702944049637, -0.7953057951401711],
];
]);
setTimeout(() => {
// 测试数据更新
data.value.push(
[0.20898877234451796, 0.8329353515647436],
[-0.6589349632101078, 0.5886313023998213],
[-0.5525702944049637, -0.7953057951401711],
);
}, 1000);
</script>
<template>