From 897abba8031763a63fd2efe16fc0ce0f3b85bcf4 Mon Sep 17 00:00:00 2001 From: LeafYeeXYZ Date: Sun, 25 Feb 2024 17:41:25 +0800 Subject: [PATCH] roll back --- main.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.js b/main.js index c1ad696..945996f 100644 --- a/main.js +++ b/main.js @@ -8,10 +8,6 @@ const container = document.querySelector('.container') // 提交函数 async function generateImage() { try { - // 设置超时 - setTimeout(() => { - throw new Error('请求超时') - }, 30000) // 禁用按钮 submit.disabled = true submit.textContent = '生成中...'