Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jieliu2000 committed Feb 6, 2025
1 parent ed165ec commit 8406d61
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions static/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let appConfig = {

// 创建一个 axios 实例,设置基础配置
const api = axios.create({
timeout: 30000, // 30秒超时
timeout: 30000*10, // 5分钟超时
headers: {
'Content-Type': 'application/json'
}
Expand Down Expand Up @@ -131,9 +131,7 @@ document.addEventListener('DOMContentLoaded', () => {
configControls.forEach(control => {
control.addEventListener('change', () => {
saveConfig();
if (control === modelSelect) {
fetchModels();
}

});
});

Expand All @@ -159,7 +157,6 @@ document.addEventListener('DOMContentLoaded', () => {
fileInput.value = '';
previewContainer.innerHTML = '';
saveConfig();
fetchModels();
});
});

Expand Down

0 comments on commit 8406d61

Please sign in to comment.