refactor: ♻️ 加强CURD表单组件、CURD使用示例改为真实接口

This commit is contained in:
cshaptx4869
2024-04-29 16:28:24 +08:00
parent 41ea932f28
commit 3e69247502
7 changed files with 132 additions and 194 deletions

View File

@@ -44,7 +44,7 @@ export function getUserForm(userId: number): AxiosPromise<UserForm> {
*
* @param data
*/
export function addUser(data: any) {
export function addUser(data: UserForm) {
return request({
url: "/api/v1/users",
method: "post",