chao 1 tháng trước cách đây
mục cha
commit
1f66322e6a
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  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