changeapi
This commit is contained in:
parent
c2894ebf20
commit
ac71974f53
@ -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();
|
||||
|
||||
// 检查进度是否停滞
|
||||
|
Loading…
Reference in New Issue
Block a user