mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
增加 web_base_url 配置, 用于配置 web 后台可置于代理子路径下
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: defaults.file,
|
||||
url: window.nps.web_base_url + defaults.file,
|
||||
dataType: "xml",
|
||||
success: function (xml) {
|
||||
$(xml).find('text').each(function () {
|
||||
@@ -65,4 +65,4 @@ $(document).ready(function () {
|
||||
setCookie("lang", "zh")
|
||||
$("body").cloudLang({lang: "zh", file: "/static/page/lang-example.xml"});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user