防止错误页返回主页出现嵌套问题

pull/117/head^2
RuoYi 2020-12-24 17:40:03 +08:00
parent de6fa42721
commit a1ec9a6508
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
<script th:inline="javascript"> <script th:inline="javascript">
var ctx = [[@{/}]]; var ctx = [[@{/}]];
function index() { function index() {
window.parent.frames.location.href = ctx + "index"; window.top.location = ctx + "index";
} }
</script> </script>
</body> </body>

View File

@ -21,7 +21,7 @@
<script th:inline="javascript"> <script th:inline="javascript">
var ctx = [[@{/}]]; var ctx = [[@{/}]];
function index() { function index() {
window.parent.frames.location.href = ctx + "index"; window.top.location = ctx + "index";
} }
</script> </script>
</body> </body>

View File

@ -21,7 +21,7 @@
<script th:inline="javascript"> <script th:inline="javascript">
var ctx = [[@{/}]]; var ctx = [[@{/}]];
function index() { function index() {
window.parent.frames.location.href = ctx + "index"; window.top.location = ctx + "index";
} }
</script> </script>
</body> </body>