Explorar o código

feat:注释检测f12js部分代码

liuyuedi %!s(int64=2) %!d(string=hai) anos
pai
achega
1b5341642b
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      src/components/WaterMark/js/devtools.js

+ 6 - 6
src/components/WaterMark/js/devtools.js

@@ -1,11 +1,11 @@
 (() => {
   function block() {
-    if (
-      window.outerHeight - window.innerHeight > 200 ||
-      window.outerWidth - window.innerWidth > 200
-    ) {
-      document.body.innerHTML = '检测到非法调试,请关闭后刷新重试!';
-    }
+    // if (
+    //   window.outerHeight - window.innerHeight > 200 ||
+    //   window.outerWidth - window.innerWidth > 200
+    // ) {
+    //   document.body.innerHTML = '检测到非法调试,请关闭后刷新重试!';
+    // }
     // setInterval(() => {
     //   (function () {
     //     return false;