Commit 4bc039f6 authored by 15011343103's avatar 15011343103

feat: 去掉 form层的默认数据

parent e6498f43
......@@ -98,11 +98,9 @@ new Vue({
}, t_name);
});
if (!data) {
const response = await fetch('./defaultData.json');
if (!response.ok) {
throw new Error('Network response was not ok');
}
data = await response.json();
this.loading = false;
// TODO 上传文件以及上传后的AI处理状态展示,直到AI处理完成才会有 data
return;
}
this.audioPoints = data.audio_points;
......
......@@ -5,7 +5,7 @@ $(function() {
window.courseware.getData(function(data) {
if (!data) {
// 修正默认数据路径为根目录
$.getJSON('/form/defaultData.json', function(defaultData) {
$.getJSON('./defaultData.json', function(defaultData) {
console.log('加载默认数据:', defaultData);
initializeApp(defaultData);
}).fail(function() {
......
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