wangbing 6 years ago
parent 971d644ccf
commit 9b40f9e907

@ -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) {

@ -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);
},

Loading…
Cancel
Save

Powered by TurnKey Linux.