fix: download query bug
This commit is contained in:
@@ -48,5 +48,7 @@ export function deleteDemo01Contact(id: number) {
|
||||
|
||||
/** 导出示例联系人 */
|
||||
export function exportDemo01Contact(params: any) {
|
||||
return requestClient.download('/infra/demo01-contact/export-excel', params);
|
||||
return requestClient.download('/infra/demo01-contact/export-excel', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -42,5 +42,7 @@ export function deleteDemo02Category(id: number) {
|
||||
|
||||
/** 导出示例分类 */
|
||||
export function exportDemo02Category(params: any) {
|
||||
return requestClient.download('/infra/demo02-category/export-excel', params);
|
||||
return requestClient.download('/infra/demo02-category/export-excel', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -63,7 +63,9 @@ export function deleteDemo03Student(id: number) {
|
||||
|
||||
/** 导出学生 */
|
||||
export function exportDemo03Student(params: any) {
|
||||
return requestClient.download('/infra/demo03-student/export-excel', params);
|
||||
return requestClient.download('/infra/demo03-student/export-excel', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// ==================== 子表(学生课程) ====================
|
||||
|
||||
@@ -63,7 +63,9 @@ export function deleteDemo03Student(id: number) {
|
||||
|
||||
/** 导出学生 */
|
||||
export function exportDemo03Student(params: any) {
|
||||
return requestClient.download('/infra/demo03-student/export-excel', params);
|
||||
return requestClient.download('/infra/demo03-student/export-excel', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// ==================== 子表(学生课程) ====================
|
||||
|
||||
@@ -65,7 +65,9 @@ export function deleteDemo03Student(id: number) {
|
||||
|
||||
/** 导出学生 */
|
||||
export function exportDemo03Student(params: any) {
|
||||
return requestClient.download('/infra/demo03-student/export-excel', params);
|
||||
return requestClient.download('/infra/demo03-student/export-excel', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// ==================== 子表(学生课程) ====================
|
||||
|
||||
@@ -51,7 +51,7 @@ export function deleteUser(id: number) {
|
||||
|
||||
/** 导出用户 */
|
||||
export function exportUser(params: any) {
|
||||
return requestClient.download('/system/user/export', params);
|
||||
return requestClient.download('/system/user/export', { params });
|
||||
}
|
||||
|
||||
/** 下载用户导入模板 */
|
||||
|
||||
Reference in New Issue
Block a user