Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI_BOOK_TOOL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
AI_BOOK_TOOL
Commits
4bc039f6
Commit
4bc039f6
authored
Jun 04, 2025
by
15011343103
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 去掉 form层的默认数据
parent
e6498f43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
index.js
form/index.js
+3
-5
defaultData.json
play/defaultData.json
+0
-0
index.js
play/index.js
+1
-1
No files found.
form/index.js
View file @
4bc039f6
...
...
@@ -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
;
...
...
form
/defaultData.json
→
play
/defaultData.json
View file @
4bc039f6
File moved
play/index.js
View file @
4bc039f6
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment