Brunch_LPQ
main
完成编辑按钮与后端接口的对接
从Element-plus中导入消息弹出框组件 新建type文件夹,新建baseType.ts文件 定义通用函数类型,新增和编辑的状态数字 在main.ts文件下从myConfirm.ts文件中引入消息弹出框组件,进行全局注册 在api/user/index.ts文件中配置编辑接口put请求 在views/user/AddUser.vue文件中 改写show函数,增加判断, 当row值不为空时,此时调用者为编辑按钮 添加回显数据功能 改写表单提交事件 通过type判断,使新增、编辑功能分别对应各自接口 完成用户编辑功能后端接口的对接
994dc0be70
No due date set.
No dependencies set.
Deleting a branch is permanent. It CANNOT be undone. Continue?
完成编辑按钮与后端接口的对接
994dc0be70
into main 2 months ago994dc0be70
.