refactor&perf
- proxy config - query export - optimize station card request
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
export interface Station {
|
||||
code: string;
|
||||
name: string;
|
||||
deviceIdPrefix: string; // 当查询设备告警记录时,需要通过deviceId的前4位来判断车站
|
||||
online: boolean;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ export const ndmDeviceAlarmLogDefaultExportByTemplate = async (stationCode: stri
|
||||
}
|
||||
return data;
|
||||
}
|
||||
const resp = await ndmClient.post<BlobPart>(`${endpoint}`, pageQuery, { responseType: 'blob', retRaw: true });
|
||||
const resp = await ndmClient.post<BlobPart>(`/${stationCode}${endpoint}`, pageQuery, { responseType: 'blob', retRaw: true });
|
||||
const [err, data] = resp;
|
||||
if (err || !data) {
|
||||
throw err;
|
||||
|
||||
Reference in New Issue
Block a user