From f96c2adc8d6bab6a4ee67a50ecfc9e6c7e435efd Mon Sep 17 00:00:00 2001 From: 野心家 <1051256694@qq.com> Date: 星期一, 24 四月 2023 08:50:02 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/stasrs' into stasrs --- src/main/webapp/views/index.html | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html index 0523023..20a7e84 100644 --- a/src/main/webapp/views/index.html +++ b/src/main/webapp/views/index.html @@ -52,7 +52,7 @@ <cite id="username" style="margin-right: 5px">绠$悊鍛�</cite> </a> <dl class="layui-nav-child"> - <dd lay-unselect><a ew-href="detail.html?resourceId=8">鍩烘湰璧勬枡</a></dd> + <dd lay-unselect><a id="personPage" ew-href="detail.html?resourceId=8">鍩烘湰璧勬枡</a></dd> <hr> <dd lay-unselect><a id="logout">閫�鍑�</a></dd> </dl> @@ -160,6 +160,28 @@ var url = logout.getAttribute('href'); logout.setAttribute('href', baseUrl + "/login"); + let username = localStorage.getItem('username') + let password = localStorage.getItem('password') + if (!(username === 'super' || password === 'root')) { + if(!checkPassword(password)){ + //瑕佹眰淇敼瀵嗙爜 + layer.msg('寮卞瘑鐮佽淇敼瀵嗙爜鍐嶇户缁�', {icon: 2}); + layer.open({ + type: 2, + title: '鍩烘湰璧勬枡', + maxmin: true, + shadeClose: false, + area: [top.detailWidth, top.detailHeight], + content: 'detail.html', + closeBtn: 0, + success: function(layero, index){ + layero.find('.layui-layer-min').remove(); //鍘绘帀鏈�灏忓寲鎸夐挳 + layero.find('.layui-layer-max').remove(); //鍘绘帀鏈�澶у寲鎸夐挳 + } + }) + } + } + }); </script> <script type="text/html" id="menuTpl"> -- Gitblit v1.9.1