-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Image generate model disable history mode #1841
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,10 +154,12 @@ | |
@wheel="wheel" | ||
title="提示词(负向)" | ||
v-model="form_data.negative_prompt" | ||
placeholder="请描述不想生成的图片内容,比如:颜色、血腥内容" | ||
style="height: 150px" | ||
@submitDialog="submitDialog" | ||
/> | ||
</el-form-item> | ||
<!-- | ||
<el-form-item> | ||
<template #label> | ||
<div class="flex-between"> | ||
|
@@ -178,6 +180,7 @@ | |
:step-strictly="true" | ||
/> | ||
</el-form-item> | ||
--> | ||
<el-form-item label="返回内容" @click.prevent> | ||
<template #label> | ||
<div class="flex align-center"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 代码的差异看起来有一些地方可能需要改进或优化:
以下是修改后的示例代码片段: - <template #label>
+ <div class="flex-between">
- </template>
- @click.prevent
+ <button>点击我</button> 请注意,具体的调整取决于你使用的前端框架(如 Vue.js)。以上只是一个基本模板的修改指南。如果还有其他问题,请提供更多详细信息,以便进一步协助。 |
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
代码中存在一些小问题和建议:
negative_prompt
的字段属性allow_null=True
和allow_blank=True
实际上没有使用。可以考虑删除这些不必要的属性。修正: 从列表中的第三个元素开始移除这两个属性。
检查其他地方是否也有类似配置,避免重复设置相同的默认值或允许空格/空串的情况。
以下是修改后的代码示例:
请注意,在实际应用中可能还需要根据具体需求调整其他字段(如
default
值)的具体含义。