chao 1 개월 전
부모
커밋
1f66322e6a
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  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