Skip to content

Commit

Permalink
roll back
Browse files Browse the repository at this point in the history
  • Loading branch information
LeafYeeXYZ committed Feb 25, 2024
1 parent ac3a529 commit 897abba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ const container = document.querySelector('.container')
// 提交函数
async function generateImage() {
try {
// 设置超时
setTimeout(() => {
throw new Error('请求超时')
}, 30000)
// 禁用按钮
submit.disabled = true
submit.textContent = '生成中...'
Expand Down

0 comments on commit 897abba

Please sign in to comment.