diff --git a/src/main/resources/modules/SpringBoot/resources/static/js/ajax.ftl b/src/main/resources/modules/SpringBoot/resources/static/js/ajax.ftl index ac9f537f..a3274e86 100644 --- a/src/main/resources/modules/SpringBoot/resources/static/js/ajax.ftl +++ b/src/main/resources/modules/SpringBoot/resources/static/js/ajax.ftl @@ -64,7 +64,7 @@ jsonRequest = function (config) { params: { method: config.method }, - url: "/ajax", + url: "'${contextPath?default("")}'/ajax", headers: {'Content-Type': 'text/plain'}, data: config.data }).then(function (response) { @@ -75,7 +75,7 @@ jsonRequest = function (config) { }; fileRequest = function (config) { return instance.request({ - url: "/upload", + url: "'${contextPath?default("")}'/upload", data: config.data, headers: {'Content-Type': 'multipart/form-data'}, onUploadProgress: function (progressEvent) { diff --git a/src/main/resources/modules/SpringBoot/resources/templates/control/mint-ui-extend.ftl b/src/main/resources/modules/SpringBoot/resources/templates/control/mint-ui-extend.ftl index a771a54f..30b61fa2 100644 --- a/src/main/resources/modules/SpringBoot/resources/templates/control/mint-ui-extend.ftl +++ b/src/main/resources/modules/SpringBoot/resources/templates/control/mint-ui-extend.ftl @@ -4,6 +4,18 @@ activeIndex: 'home', contextPath: '${contextPath?default("")}', homePath: '${homePath?default("")}', + tip: { + show: function (msg) { + if(msg) { + this.$indicator.open(msg); + }else { + this.$indicator.open(); + } + }, + close: function () { + this.$indicator.close(); + } + }, }, methods: { i: function (message, callback) { @@ -14,16 +26,6 @@ }); setTimeout(callback, 3000) }, - showLoad:function(message){ - if(message) { - this.indicator.open(message); - }else { - this.indicator.open(); - } - }, - closeLoad:function(){ - this.indicator.close(); - }, alert: function (message, callback) { this.$messageBox.alert(message, "").then(callback); },