From 9bfdc39e8e7aade92db4e7c57586a90e2a4c91bf Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期六, 26 二月 2022 14:29:56 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/index.html |   72 ++++++++++++++++++------------------
 1 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 37e0412..4c335ae 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -164,42 +164,42 @@
         var url = logout.getAttribute('href');
         logout.setAttribute('href', baseUrl + "/login");
 
-        setInterval(function () {
-            $.ajax({
-                url: baseUrl + "/alarm/index/auth",
-                headers: {'token': localStorage.getItem('token')},
-                method: 'GET',
-                success: function (res) {
-                    if (res.code === 200) {
-                        if (res.data != null) {
-                            notice["error"]({
-                                theme: "dark",
-                                animateInside: true,
-                                layout: 2,
-                                rtl: false,
-                                displayMode: 1,
-                                position: "bottomRight",
-                                transitionIn: "fadeInLeft",
-                                transitionOut: "fadeOutRight",
-                                title: res.data.sensorType$ + "璁惧鎶ヨ",
-                                message: "#" + res.data.uuid + "#" + res.data.desc,
-                                pauseOnHover: false,
-                                resetOnHover: false,
-                                timeout: false,
-                                progressBar: false,
-                                onOpened: function () {
-                                    $(".iziToast-message").css("cursor", "pointer")
-                                }
-                            });
-                        }
-                    } else if (res.code === 403) {
-                        top.location.href = baseUrl + "/login";
-                    } else {
-                        layer.msg(res.msg, {icon: 2});
-                    }
-                }
-            });
-        }, 5000);
+        // setInterval(function () {
+        //     $.ajax({
+        //         url: baseUrl + "/alarm/index/auth",
+        //         headers: {'token': localStorage.getItem('token')},
+        //         method: 'GET',
+        //         success: function (res) {
+        //             if (res.code === 200) {
+        //                 if (res.data != null) {
+        //                     notice["error"]({
+        //                         theme: "dark",
+        //                         animateInside: true,
+        //                         layout: 2,
+        //                         rtl: false,
+        //                         displayMode: 1,
+        //                         position: "bottomRight",
+        //                         transitionIn: "fadeInLeft",
+        //                         transitionOut: "fadeOutRight",
+        //                         title: res.data.sensorType$ + "璁惧鎶ヨ",
+        //                         message: "#" + res.data.uuid + "#" + res.data.desc,
+        //                         pauseOnHover: false,
+        //                         resetOnHover: false,
+        //                         timeout: false,
+        //                         progressBar: false,
+        //                         onOpened: function () {
+        //                             $(".iziToast-message").css("cursor", "pointer")
+        //                         }
+        //                     });
+        //                 }
+        //             } else if (res.code === 403) {
+        //                 top.location.href = baseUrl + "/login";
+        //             } else {
+        //                 layer.msg(res.msg, {icon: 2});
+        //             }
+        //         }
+        //     });
+        // }, 5000);
 
         $(document).on('click', '.iziToast-message', function(el) {
             var alarmUuid = el.target.innerText.match(/#(\S*)#/)[1];

--
Gitblit v1.9.1