refactor(CURD): ♻️ 编辑表单使用drawer模式

This commit is contained in:
cshaptx4869 committed 2024-05-14 15:23:26 +08:00
1 parent 3b9a249bcb
commit 87f67004dc
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -5,10 +5,10 @@ import type { IModalConfig } from "@/components/PageModal/index.vue";
const modalConfig: IModalConfig<UserForm> = {
pageName: "sys:user",
pk: "id",
dialog: {
component: "drawer",
drawer: {
title: "修改用户",
width: 800,
draggable: true,
size: 300,
},
formAction: function (data) {
return UserAPI.update(data.id as number, data);