_星座样本IQ.no-lint.ts
This commit is contained in:
@@ -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(() => {
|
||||
|
Reference in New Issue
Block a user