Skip to content

Commit 2529011

Browse files
committed
fix: negative_prompt is not working
--bug=1050785 --user=刘瑞斌 【应用编排】-图片生成组件放大负向提示词编辑框输入内容后,在正向提示词框中生效了 https://www.tapd.cn/57709429/s/1637689
1 parent 549df74 commit 2529011

File tree

1 file changed

+5
-1
lines changed
  • ui/src/workflow/nodes/image-generate

1 file changed

+5
-1
lines changed

ui/src/workflow/nodes/image-generate/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
v-model="form_data.negative_prompt"
157157
placeholder="请描述不想生成的图片内容,比如:颜色、血腥内容"
158158
style="height: 150px"
159-
@submitDialog="submitDialog"
159+
@submitDialog="submitNegativeDialog"
160160
/>
161161
</el-form-item>
162162
<!--
@@ -315,6 +315,10 @@ function submitDialog(val: string) {
315315
set(props.nodeModel.properties.node_data, 'prompt', val)
316316
}
317317
318+
function submitNegativeDialog(val: string) {
319+
set(props.nodeModel.properties.node_data, 'negative_prompt', val)
320+
}
321+
318322
onMounted(() => {
319323
getModel()
320324
getProvider()

0 commit comments

Comments
 (0)