_星座样本IQ.no-lint.ts

This commit is contained in:
严浩
2025-04-11 17:52:28 +08:00
parent 09b1e481e5
commit e9676c120d
7 changed files with 6768 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ definePage({ meta: { title: '频谱图+瀑布图' } });
const iframeSpectrogramRef = useTemplateRef('iframeSpectrogramRef');
// 模拟生成频谱数据的函数
function generateFakeSpectrogramData(len = 200, baseLevel = -90, noiseRange = 30) {
function generateFakeSpectrogramData(len = 30, baseLevel = -90, noiseRange = 30) {
const data = [];
for (let i = 0; i < len; i++) {
// 模拟一些峰值
@@ -35,7 +35,7 @@ onMounted(() => {
console.warn('[📄] 页面:无法获取 IframeSpectrogram 组件的引用来发送更新数据');
}
console.log('[📄] 页面:更新频谱数据带时间');
}, 2000);
}, 1000);
});
onUnmounted(() => {