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);
|
||||
|
||||
@@ -4,7 +4,7 @@ import selectConfig from "./config/select";
|
||||
import { useDictStore } from "@/store";
|
||||
const dictStore = useDictStore();
|
||||
interface IUser {
|
||||
id: number;
|
||||
id: string;
|
||||
username: string;
|
||||
nickname: string;
|
||||
mobile: string;
|
||||
|
||||
Reference in New Issue
Block a user