Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaoai-video
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
姚珂
yaoai-video
Commits
7d9fd30b
Commit
7d9fd30b
authored
Apr 27, 2026
by
yaoke.yk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成场景图片失败修复01
parent
e7ad0c17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
SceneGeneration.tsx
doc/html/src/app/pages/SceneGeneration.tsx
+15
-1
No files found.
doc/html/src/app/pages/SceneGeneration.tsx
View file @
7d9fd30b
...
@@ -7,7 +7,7 @@ import type { Scene } from "../../lib/api/ai";
...
@@ -7,7 +7,7 @@ import type { Scene } from "../../lib/api/ai";
type
SettingsTab
=
"characters"
|
"scenes"
|
"props"
;
type
SettingsTab
=
"characters"
|
"scenes"
|
"props"
;
const
emptyForm
=
():
Partial
<
Scene
>
=>
({
const
emptyForm
=
():
Partial
<
Scene
>
=>
({
name
:
""
,
sceneType
:
"indoor"
,
description
:
""
,
name
:
""
,
sceneType
:
"indoor"
,
description
:
""
,
imagePrompt
:
""
,
});
});
export
function
SceneGeneration
()
{
export
function
SceneGeneration
()
{
...
@@ -384,6 +384,20 @@ export function SceneGeneration() {
...
@@ -384,6 +384,20 @@ export function SceneGeneration() {
className=
"w-full px-3 py-2 rounded-lg border border-border bg-background text-foreground placeholder-muted-foreground resize-none focus:outline-none focus:ring-2 focus:ring-primary/20"
className=
"w-full px-3 py-2 rounded-lg border border-border bg-background text-foreground placeholder-muted-foreground resize-none focus:outline-none focus:ring-2 focus:ring-primary/20"
/>
/>
</
div
>
</
div
>
<
div
>
<
label
className=
"block text-sm font-medium text-foreground mb-1"
>
图片 Prompt
</
label
>
<
textarea
value=
{
editingScene
.
imagePrompt
??
""
}
onChange=
{
(
e
)
=>
setEditingScene
({
...
editingScene
,
imagePrompt
:
e
.
target
.
value
})
}
placeholder=
"用于 AI 生成场景图的提示词;留空时会根据场景名称和描述自动补全"
rows=
{
4
}
className=
"w-full px-3 py-2 rounded-lg border border-border bg-background text-foreground placeholder-muted-foreground resize-none focus:outline-none focus:ring-2 focus:ring-primary/20"
/>
<
p
className=
"mt-1 text-xs text-muted-foreground"
>
修改这里才会更新生成场景图片时真正使用的提示词
</
p
>
</
div
>
</
div
>
</
div
>
{
/* Modal Footer */
}
{
/* Modal Footer */
}
...
...
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