Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xuwx1
LightX2V
Commits
e1b16a56
Unverified
Commit
e1b16a56
authored
Oct 22, 2025
by
LiangLiu
Committed by
GitHub
Oct 22, 2025
Browse files
Fix choose model error for frontend (#398)
Fix choose model error for frontend
parent
1f0fe18f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lightx2v/deploy/server/frontend/src/utils/other.js
lightx2v/deploy/server/frontend/src/utils/other.js
+6
-1
No files found.
lightx2v/deploy/server/frontend/src/utils/other.js
View file @
e1b16a56
...
...
@@ -1047,6 +1047,11 @@
};
const
selectTask
=
(
taskType
)
=>
{
for
(
const
t
of
models
.
value
.
map
(
m
=>
m
.
task
))
{
if
(
getTaskTypeName
(
t
)
===
taskType
)
{
taskType
=
t
;
}
}
selectedTaskId
.
value
=
taskType
;
// 根据任务类型恢复对应的预览
...
...
@@ -1573,7 +1578,7 @@
// 先从缓存获取
const
cachedFile
=
getTemplateFileFromCache
(
fileKey
);
if
(
cachedFile
)
{
console
.
log
(
'
从缓存获取模板文件url
'
,
{
fileKey
});
/*
console.log('从缓存获取模板文件url', { fileKey});
*/
return
cachedFile
.
url
;
}
// 如果缓存中没有,返回null,让调用方知道需要异步获取
...
...
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