Iframe-PlotlyJs-Comp.vue
Some checks failed
/ surge (push) Successful in 2m45s
/ build-and-deploy-to-vercel (push) Successful in 2m51s
/ lint-build-and-check (push) Has been cancelled
/ playwright (push) Has been cancelled

This commit is contained in:
严浩
2025-04-18 12:47:31 +08:00
parent 1f959b1d1b
commit edcf30a4d8
2 changed files with 57 additions and 5 deletions

View File

@ -3,13 +3,18 @@ import 频谱图数据 from './_频谱图_fftSize65536_32768条.json';
const compRef = useTemplateRef('compRef');
onMounted(() => {
onMounted(async () => {
console.debug('[onMounted] page 加载完成');
compRef.value!.添加数据(
await compRef.value!.添加数据(
频谱图数据, // 实际数据点为32768
65_536, // FFT大小为65536
96_000, // 采样率为96000
);
// await compRef.value!.添加数据(
// 频谱图数据, // 实际数据点为32768
// 65_536, // FFT大小为65536
// 96_000, // 采样率为96000
// );
});
</script>