changeapi

This commit is contained in:
scout 2024-11-14 10:58:41 +08:00
parent c2894ebf20
commit ac71974f53

View File

@ -193,7 +193,7 @@ document.addEventListener('DOMContentLoaded', function() {
formData.append('target_lang', document.getElementById('targetLang').value);
// 开始翻译请求
const response = await fetch('http://localhost:5000/translate', {
const response = await fetch('http://172.16.100.22:8044/translate', {
method: 'POST',
body: formData
});
@ -201,7 +201,7 @@ document.addEventListener('DOMContentLoaded', function() {
// 定时检查进度
const progressCheck = setInterval(async () => {
try {
const progressResponse = await fetch('http://localhost:5000/progress');
const progressResponse = await fetch('http://172.16.100.22:8044/progress');
const progressData = await progressResponse.json();
// 检查进度是否停滞