fix: core download page error

pull/14716/head
Bai 2024-12-20 15:55:52 +08:00 committed by Bryan
parent be57b101ff
commit 7e6d2749ae
2 changed files with 4 additions and 1 deletions

View File

@ -147,6 +147,9 @@ function activeNav(prefix) {
}
var path = document.location.pathname;
path = path.replace(prefix, '');
if (path === '/core/download/') {
return
}
var urlArray = path.split("/");
var app = urlArray[1];
var resource = urlArray[2];

View File

@ -6,7 +6,7 @@
<!-- Custom and plugin javascript -->
<script src="{% static "js/plugins/toastr/toastr.min.js" %}"></script>
<script src="{% static "js/inspinia.js" %}"></script>
<script src="{% static "js/jumpserver.js" %}?v=9"></script>
<script src="{% static "js/jumpserver.js" %}?v=10"></script>
<script src="{% static 'js/plugins/select2/select2.full.min.js' %}"></script>
<script src="{% static 'js/plugins/select2/i18n/zh-CN.js' %}"></script>
<script src="{% static 'js/plugins/markdown-it.min.js' %}"></script>