mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: negative_prompt is not working
--bug=1050785 --user=刘瑞斌 【应用编排】-图片生成组件放大负向提示词编辑框输入内容后,在正向提示词框中生效了 https://www.tapd.cn/57709429/s/1637689
This commit is contained in:
parent
549df741fa
commit
2529011df9
|
|
@ -156,7 +156,7 @@
|
|||
v-model="form_data.negative_prompt"
|
||||
placeholder="请描述不想生成的图片内容,比如:颜色、血腥内容"
|
||||
style="height: 150px"
|
||||
@submitDialog="submitDialog"
|
||||
@submitDialog="submitNegativeDialog"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!--
|
||||
|
|
@ -315,6 +315,10 @@ function submitDialog(val: string) {
|
|||
set(props.nodeModel.properties.node_data, 'prompt', val)
|
||||
}
|
||||
|
||||
function submitNegativeDialog(val: string) {
|
||||
set(props.nodeModel.properties.node_data, 'negative_prompt', val)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
getModel()
|
||||
getProvider()
|
||||
|
|
|
|||
Loading…
Reference in New Issue