Your Name 3 年之前
父节点
当前提交
1aee15a020
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      step_question/apis/main.py

+ 1 - 1
step_question/apis/main.py

@@ -49,7 +49,7 @@ async def submit(request: Request):
 #    fr.close()
 #    response = RedirectResponse(url='/a1/index_complete.html')
     lines="""<html><body>
-    <script>   document.location = '/a1/index_complete.html?par={0}';   </script>
+    <script>   document.location.href = '/a1/index_complete.html?par={0}',true;   </script>
     </body></html>"""
 #    return RedirectResponse(url='/a1/index_complete.html')
     return HTMLResponse(content=lines.format(str(random.randint(100000,999999))), status_code=200)