refactor: ♻️ 抽离CURD的使用部分代码为Hooks实现

This commit is contained in:
cshaptx4869
2024-04-27 20:22:23 +08:00
parent b9a4890354
commit 1e0dee0a6e
5 changed files with 140 additions and 50 deletions

View File

@@ -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",