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
5702998a
Commit
5702998a
authored
Jun 11, 2025
by
15011343103
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
42ba02d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
index.js
form/index.js
+13
-1
No files found.
form/index.js
View file @
5702998a
...
...
@@ -98,7 +98,6 @@ new Vue({
methods
:
{
// 心跳实时查询异步处理进度及信息
async
checkProcess
(
_data
)
{
let
data
=
_data
;
if
(
!
data
)
{
data
=
await
new
Promise
((
resolve
)
=>
{
...
...
@@ -110,6 +109,10 @@ new Vue({
if
(
data
&&
data
.
data_type
==
'
AI_QUEUE
'
)
{
// 更新队列任务列表
this
.
queueTasks
=
data
.
rows
;
// 滚动到底部
this
.
$nextTick
(()
=>
{
this
.
scrollToBottom
();
});
// 继续检查进度
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
1000
));
this
.
checkProcess
();
...
...
@@ -2422,6 +2425,15 @@ new Vue({
const
seconds
=
String
(
date
.
getSeconds
()).
padStart
(
2
,
'
0
'
);
return
`
${
year
}
-
${
month
}
-
${
day
}
${
hours
}
:
${
minutes
}
:
${
seconds
}
`
;
},
scrollToBottom
()
{
this
.
$nextTick
(()
=>
{
const
processContent
=
document
.
querySelector
(
'
.process-content
'
);
if
(
processContent
)
{
processContent
.
scrollTop
=
processContent
.
scrollHeight
;
}
});
},
},
beforeDestroy
()
{
...
...
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