[Update] 修改core 的base url

This commit is contained in:
ibuler
2020-05-27 18:02:18 +08:00
parent f528dd4888
commit a840e611cd
3 changed files with 13 additions and 13 deletions

View File

@@ -138,11 +138,11 @@ function setAjaxCSRFToken() {
}
function activeNav(prefix) {
var path = document.location.pathname;
if (prefix) {
path = path.replace(prefix, '');
console.log(path);
if (!prefix) {
prefix = '/core'
}
var path = document.location.pathname;
path = path.replace(prefix, '');
var urlArray = path.split("/");
var app = urlArray[1];
var resource = urlArray[2];