refactor: ♻️ 抽离CURD的使用部分代码为Hooks实现
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { IContentConfig } from "@/components/PageContent/index.vue";
|
||||
import { exportUser } from "@/api/user";
|
||||
|
||||
const contentConfig: IContentConfig = {
|
||||
pageName: "sys:user",
|
||||
@@ -60,6 +61,10 @@ const contentConfig: IContentConfig = {
|
||||
});
|
||||
});
|
||||
},
|
||||
exportAction: function (queryParams) {
|
||||
// 导出Excel文件
|
||||
return exportUser(queryParams as any);
|
||||
},
|
||||
pk: "id",
|
||||
toolbar: [
|
||||
"refresh",
|
||||
|
||||
Reference in New Issue
Block a user