chao 1 month ago
parent
commit
1f66322e6a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      public/index.html

+ 5 - 2
public/index.html

@@ -709,7 +709,7 @@
     </div>
 
     <script>
-        const requesturl = window.location.href.indexOf("localhost") > -1 ? "http://localhost:11111" : "http://183.36.25.93:888/";
+        const requesturl = window.location.href.indexOf("localhost") > -1 ? "http://localhost:11111/" : "http://183.36.25.93:888/";
         console.log("requesturl:", requesturl);
 
         const nowTime = new Date();
@@ -809,7 +809,10 @@
             // 删除添加的表单
             addList.forEach((item, idx) => {
                 let formDiv = html.querySelector(`div#addformContainer${item}`);
-                html.removeChild(formDiv);
+                if(formDiv){
+                    html.removeChild(formDiv);
+                }
+                
             });
             addList = []
             num = 1