修改错误页面返回主页出现嵌套问题

This commit is contained in:
RuoYi
2019-12-10 17:20:43 +08:00
parent 55978c7f15
commit d80c1d2a73
3 changed files with 21 additions and 3 deletions

View File

@@ -15,8 +15,14 @@
<div class="error-desc">
对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面
<a th:href="@{/index}" class="btn btn-outline btn-primary btn-xs">返回主页</a>
<a th:href="javascript:index()" class="btn btn-outline btn-primary btn-xs">返回主页</a>
</div>
</div>
<script th:inline="javascript">
var ctx = [[@{/}]];
function index() {
window.parent.frames.location.href = ctx + "index";
}
</script>
</body>
</html>