瀏覽代碼

Merge branch 'messagePass220412' into test

1178232204@qq.com 3 年之前
父節點
當前提交
a349c6a81d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/js/modal.js

+ 2 - 2
src/js/modal.js

@@ -109,7 +109,7 @@ const jQuery = require('jquery');
         }
         if (ops.type == 'tip') {
             setTimeout(function () {
-                box.remove();
+                $(".divModal").remove()
             }, ops.time);
         }
         if (ops.callback && typeof ops.callback === 'function') {
@@ -118,7 +118,7 @@ const jQuery = require('jquery');
             })
         } else {
             $(parent.document||document).on('click', ".alertModal .titlemodal img,.alertModal .quite,.alertModal .gobackbtn", function () {
-                box.remove();
+                $(".divModal").remove()
             })
         }
     }