From 6abc20e29568c129f4ca71eccec9310534a8c779 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 04 八月 2020 14:42:24 +0800
Subject: [PATCH] #
---
src/main/webapp/views/index.html | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 87c8e23..0acdf60 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -21,7 +21,7 @@
<li><a id="console" onclick="nav(this.id)" class="nav-select" href="#">涓绘帶鍥�</a></li>
<li><a id="pipeline" onclick="nav(this.id)" class="nav-unselect" href="#">杈撻�佽澶�</a></li>
<li><a id="crn" onclick="nav(this.id)" class="nav-unselect" href="#">鍫嗗灈鏈�</a></li>
- <li class="right"><a id="about" class="nav-unselect" onclick="nav(this.id)" href="#">鍏充簬</a></li>
+ <li class="right"><a id="about" class="nav-unselect" onclick="logout()" href="#">娉ㄩ攢</a></li>
</ul>
<!-- 涓讳綋鍐呭 -->
@@ -38,6 +38,15 @@
$('#'+id).attr("class", "nav-select");
$('#content').attr("src", id+".html");
}
+
+ // 娉ㄩ攢
+ function logout() {
+ localStorage.removeItem("token");
+ window.location.href = baseUrl + "/login";
+ }
+
+ // 绯荤粺杩愯鐘舵��
+ var systemRunning = true;
</script>
</html>
--
Gitblit v1.9.1