Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
LeafYeeXYZ committed Apr 17, 2024
1 parent a495dfa commit e986323
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Images.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ function Images({ images, setImages, zhMode, dialogAction }) {
className='image-downloader'
href={image.base64}
download={`${image.prompt.replace(/\(([^)]*)\)/, '').trim()}.png`}
onClick={e => {
const loading = document.querySelector('.image-loading')
if (loading) {
e.preventDefault()
dialogAction({ type: 'open', title: '错误', content: '请等待当前图片生成完成' })
}
}}
><DownloadOutlined /></a>

<button
Expand Down

0 comments on commit e986323

Please sign in to comment.