diff --git a/searx/webapp.py b/searx/webapp.py index 36afc270e..184e031f3 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1244,7 +1244,9 @@ const search_type = "''' + search_type + r'''" const net_search = ''' + net_search_str + r''' const add_system = ''' + add_system +r''' ''' # for i in range(1,16): diff --git a/searx/webapp1.py b/searx/webapp1.py index 925064d2a..441076cb0 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -1390,6 +1390,7 @@ for (let i = 0; i < links.length; i++) { var iframe = document.querySelector("#iframe-wrapper > iframe"); new Promise((resolve, reject) => { + lock_chat = 1; if(num=='pdf') { var pdf = iframe.contentWindow.PDFViewerApplication.pdfDocument; @@ -1549,6 +1550,7 @@ for (let i = 0; i < links.length; i++) { resolve("success"); }).catch(function(error) { + lock_chat = 0; console.error(error); //处理错误情况 }); @@ -1655,6 +1657,7 @@ for (let i = 0; i < links.length; i++) { }); }) .catch((error) => { + lock_chat = 0; console.error('Error:', error); });