fix: 🐛 统一主键为 string 类型
This commit is contained in:
@@ -20,7 +20,7 @@ const contentConfig: IContentConfig<UserPageQuery> = {
|
||||
},
|
||||
deleteAction: UserAPI.deleteByIds,
|
||||
importAction(file) {
|
||||
return UserAPI.import(1, file);
|
||||
return UserAPI.import("1", file);
|
||||
},
|
||||
exportAction: UserAPI.export,
|
||||
importTemplate: UserAPI.downloadTemplate,
|
||||
|
||||
@@ -12,7 +12,7 @@ const modalConfig: IModalConfig<UserForm> = {
|
||||
},
|
||||
pk: "id",
|
||||
formAction: function (data) {
|
||||
return UserAPI.update(data.id as number, data);
|
||||
return UserAPI.update(data.id as string, data);
|
||||
},
|
||||
beforeSubmit(data) {
|
||||
console.log("提交之前处理", data);
|
||||
|
||||
Reference in New Issue
Block a user