diff --git a/src/pages/shop/IncreaseStoreManager.vue b/src/pages/shop/IncreaseStoreManager.vue index 7759439..b21eb39 100644 --- a/src/pages/shop/IncreaseStoreManager.vue +++ b/src/pages/shop/IncreaseStoreManager.vue @@ -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") { diff --git a/src/services/CommonHttp.js b/src/services/CommonHttp.js index 867412f..5cdcff0 100755 --- a/src/services/CommonHttp.js +++ b/src/services/CommonHttp.js @@ -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) } )