Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yl14_aicourse
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
yl14_aicourse
Commits
70165636
Commit
70165636
authored
Mar 26, 2026
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
96220e6b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
index.js
form/index.js
+7
-2
No files found.
form/index.js
View file @
70165636
...
...
@@ -651,12 +651,17 @@ Atmosphere and Colors: [Fill in content]
handleAiGenerateDownload
:
async
function
()
{
var
_this
=
this
;
try
{
var
indexParam
=
parseInt
(
new
URLSearchParams
(
window
.
location
.
search
).
get
(
'
index
'
),
10
);
var
pageXxx
=
(
isNaN
(
indexParam
)
?
0
:
indexParam
)
+
1
;
var
templateFilename
=
'
page_
'
+
pageXxx
+
'
_template.md
'
;
var
dataFilename
=
'
page_
'
+
pageXxx
+
'
_data.md
'
;
var
tplRes
=
await
fetch
(
'
./ImagesActionsTemplate.md
'
);
if
(
!
tplRes
.
ok
)
{
throw
new
Error
(
'
无法读取 ImagesActionsTemplate.md
'
);
}
var
tplText
=
await
tplRes
.
text
();
_this
.
downloadTextFile
(
'
ImagesActionsTemplate.md
'
,
tplText
);
_this
.
downloadTextFile
(
templateFilename
,
tplText
);
var
dataRes
=
await
fetch
(
'
./ImagesActionsTemplateData.md
'
);
if
(
!
dataRes
.
ok
)
{
...
...
@@ -676,7 +681,7 @@ Atmosphere and Colors: [Fill in content]
throw
new
Error
(
'
ImagesActionsTemplateData.md 中未找到可替换的空 content(需为 content: {})
'
);
}
setTimeout
(
function
()
{
_this
.
downloadTextFile
(
'
ImagesActionsTemplateData.md
'
,
filled
);
_this
.
downloadTextFile
(
dataFilename
,
filled
);
},
200
);
this
.
$message
.
success
(
'
已开始下载两个 MD 文件
'
);
}
catch
(
err
)
{
...
...
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