Commit 42ba02d2 authored by 15011343103's avatar 15011343103

feat

parent d2db0d49
...@@ -84,8 +84,7 @@ new Vue({ ...@@ -84,8 +84,7 @@ new Vue({
this.$nextTick(() => { this.$nextTick(() => {
// 先加载数据 // 先加载数据
this.loadDefaultData().then(() => { this.loadDefaultData().then(() => {
// 数据加载成功后初始化波形图
this.initWavesurfer();
}); });
// 添加全局事件监听 // 添加全局事件监听
...@@ -117,6 +116,7 @@ new Vue({ ...@@ -117,6 +116,7 @@ new Vue({
} else { } else {
this.hasData = true; this.hasData = true;
this.initPage(data); this.initPage(data);
this.initWavesurfer();
this.$message.success('处理完成'); this.$message.success('处理完成');
} }
}, },
...@@ -291,6 +291,7 @@ new Vue({ ...@@ -291,6 +291,7 @@ new Vue({
this.hasData = true; this.hasData = true;
this.initPage(data); this.initPage(data);
this.initWavesurfer();
this.loading = false; this.loading = false;
this.$message.success('数据加载成功'); this.$message.success('数据加载成功');
} catch (error) { } catch (error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment