fix: 🐛 统一主键为 string 类型

This commit is contained in:
Ray.Hao
2025-04-02 19:01:00 +08:00
parent 57e6033b80
commit ab3584fcf4
21 changed files with 67 additions and 67 deletions

View File

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

View File

@@ -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);