【增加】image 增加重新生成操作(值已经完成切换,还不能完全填充值)

This commit is contained in:
cherishsince
2024-07-03 22:04:59 +08:00
parent 5c560e2fbe
commit ed786b2db6
6 changed files with 74 additions and 6 deletions

View File

@@ -120,7 +120,7 @@
</div>
</template>
<script setup lang="ts">
import {ImageApi, ImageDrawReqVO} from '@/api/ai/image'
import {ImageApi, ImageDrawReqVO, ImageVO} from '@/api/ai/image'
// image 模型
interface ImageModelVO {
@@ -371,6 +371,14 @@ const handleGenerateImage = async () => {
drawIn.value = false
}
}
/** 填充值 */
const settingValues = async (imageDetail: ImageVO) => {
prompt.value = imageDetail.prompt
}
/** 暴露组件方法 */
defineExpose({ settingValues })
</script>
<style scoped lang="scss">
// 提示词