|
@@ -127,7 +127,8 @@ export function postBlob(data) {
|
|
|
url: zhapi(process.env.VUE_APP_BASE_API, data.url), // 后端接口地址
|
|
|
responseType: 'blob', // bolb格式的请求方式
|
|
|
headers: {
|
|
|
- 'x-token': getToken() // 请求头
|
|
|
+ 'x-token': getToken(), // 请求头
|
|
|
+ 'orderYear': localStorage.getItem('orderYearVal') || new Date().getFullYear()
|
|
|
},
|
|
|
data: data.data // 需要传给后端的请求参数体
|
|
|
})
|
|
@@ -161,7 +162,8 @@ export function getBlob(data) {
|
|
|
responseType: 'blob',
|
|
|
params: data.params, // 与post传参方式不同之处
|
|
|
headers: {
|
|
|
- 'x-token': getToken() // 请求头
|
|
|
+ 'x-token': getToken(), // 请求头
|
|
|
+ 'orderYear': localStorage.getItem('orderYearVal') || new Date().getFullYear()
|
|
|
}
|
|
|
})
|
|
|
.then(res => {
|