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