请求时间修改

feature_0521
LegnaYet 5 years ago
parent 5ea54cf402
commit b9e983ba7c

@ -537,13 +537,13 @@
},
downloadStoreCode() {
this.loading = true;
http.downloadStoreCode({}, null);
this.loading = false;
let that = this;
http.downloadStoreCode({page:that}, null);
},
downloadStoreSellerCode() {
this.loading = true;
http.downloadStoreSellerCode({}, null);
this.loading = false;
let that = this;
http.downloadStoreSellerCode({page:that}, null);
},
updateSuccess(response) {
if (response.code === "0000") {

@ -7,7 +7,7 @@ import commonUtils from '../utils/Common'
// http://mf.kiisoo.com:58080/
axios.defaults.baseURL = 'https://wxtk.bsdits.com/kiisoo-ic/';
// axios.defaults.baseURL = '/kiisoo-ic';
// axios.defaults.baseURL = '/ic';
//响应时间
axios.defaults.timeout = 3600000;
@ -200,7 +200,7 @@ export function downloadZip(url,filename, options = {}) {
axios({
method: 'post',
url: url, // 请求地址
data: options, // 参数
data: {}, // 参数
responseType: 'blob' // 表明返回服务器返回的数据类型
}).then(
response => {
@ -222,8 +222,10 @@ export function downloadZip(url,filename, options = {}) {
//释放内存
window.URL.revokeObjectURL(link.href)
}
options.page.loading = false
},
err => {
options.page.loading = false
reject(err)
}
)

Loading…
Cancel
Save