Parcourir la source

iframe框架页会话过期弹出超时提示

RuoYi il y a 5 ans
Parent
commit
07042ac9b1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      ruoyi-admin/src/main/resources/templates/login.html

+ 1 - 1
ruoyi-admin/src/main/resources/templates/login.html

@@ -18,7 +18,7 @@
     <link rel="shortcut icon" href="../static/favicon.ico" th:href="@{favicon.ico}"/>
     <style type="text/css">label.error { position:inherit;  }</style>
     <script>
-        if(window.top!==window.self){window.top.location=window.location};
+        if(window.top!==window.self){alert('未登录或登录超时。请重新登录');window.top.location=window.location};
     </script>
 </head>