请求时间修改

feature_0521
LegnaYet 5 years ago
parent 5ea54cf402
commit b9e983ba7c

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

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

Loading…
Cancel
Save