From 37b12312d2f32c5120cfa5cf5777fd915045882a Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期四, 06 六月 2024 16:57:00 +0800
Subject: [PATCH] #
---
src/main/webapp/views/index.html | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 0c3212b..b07f40b 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -197,6 +197,46 @@
var url = logout.getAttribute('href');
logout.setAttribute('href', baseUrl + "/login");
+ var flag = false
+ var sure = true
+ var msg = ""
+ setInterval(function () {
+
+
+ $.ajax({
+ url: baseUrl+"/console/system/running/error",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ success: function (res) {
+ console.log(res.code)
+ if (res.code === 200){
+
+ }else if (res.code === 500){
+ msg = res.data
+ flag = true
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ } else {
+ layer.msg(res.msg, {icon: 2});
+ }
+ }
+ })
+
+ if (flag && sure){
+ layer.open({
+ id: 1,
+ title: '鎶ヨ鎻愮ず'
+ ,content: msg,
+ yes: function (index,layero) {
+ console.log(1111)
+ sure = false
+ layer.close(index)
+ }
+ });
+ }
+
+ }, 1000);
+
});
</script>
<script type="text/html" id="menuTpl">
--
Gitblit v1.9.1