修复二级目录下JS中请求插件地址时错误的BUG

pull/37/head
Karson 2018-01-31 23:06:49 +08:00
parent e0987fda2d
commit 36a392962e
3 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,8 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
if (!r.test(url)) {
url = Config.moduleurl + "/" + url;
}
} else if (url.substr(0, 8) === "/addons/") {
url = Config.__PUBLIC__.replace(/(\/*$)/g, "") + url;
}
return url;
},

View File

@ -2049,6 +2049,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
if (!r.test(url)) {
url = Config.moduleurl + "/" + url;
}
} else if (url.substr(0, 8) === "/addons/") {
url = Config.__PUBLIC__.replace(/(\/*$)/g, "") + url;
}
return url;
},

View File

@ -2049,6 +2049,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
if (!r.test(url)) {
url = Config.moduleurl + "/" + url;
}
} else if (url.substr(0, 8) === "/addons/") {
url = Config.__PUBLIC__.replace(/(\/*$)/g, "") + url;
}
return url;
},