fix: bug#10363
This commit is contained in:
parent
12e3bf620b
commit
739a044823
|
@ -120,7 +120,7 @@ export interface SearchItemData {
|
||||||
export const handleParamsToString = (terms:SearchItemData[] = []) => {
|
export const handleParamsToString = (terms:SearchItemData[] = []) => {
|
||||||
const _terms: any[] = [
|
const _terms: any[] = [
|
||||||
{ terms: [null,null,null]},
|
{ terms: [null,null,null]},
|
||||||
{ terms: [null,null,null]}
|
{ terms: [null,null,null], type: 'and'}
|
||||||
]
|
]
|
||||||
let termsIndex = 0
|
let termsIndex = 0
|
||||||
let termsStar = 0
|
let termsStar = 0
|
||||||
|
|
|
@ -191,13 +191,6 @@ request.interceptors.response.use(response => {
|
||||||
response.data.success = status === SUCCESS_CODE
|
response.data.success = status === SUCCESS_CODE
|
||||||
}
|
}
|
||||||
|
|
||||||
// 统一显示异常业务信息
|
|
||||||
if (status !== SUCCESS_CODE && message) {
|
|
||||||
Notification.error({
|
|
||||||
message: 'Server Errors: ' + status,
|
|
||||||
description: message
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 如果返回的的是文件流,那么return值则为response
|
// 如果返回的的是文件流,那么return值则为response
|
||||||
if (response.headers['content-type'] === 'application/octet-stream; charset=UTF-8' || response.headers['content-type'] === 'application/vnd.ms-excel;charset=UTF-8') {
|
if (response.headers['content-type'] === 'application/octet-stream; charset=UTF-8' || response.headers['content-type'] === 'application/vnd.ms-excel;charset=UTF-8') {
|
||||||
return response.data
|
return response.data
|
||||||
|
|
Loading…
Reference in New Issue