kailong321200875 / vue-element-plus-admin

A backend management system based on vue3, typescript, element-plus, and vite
https://element-plus-admin.cn/
MIT License
2.81k stars 682 forks source link

fixs:传入modle对应的field值为number类型0 被删除的错误场景 #518

Closed sixiTr closed 2 months ago

sixiTr commented 2 months ago

Form组件下的helper/index initModel方法 如果传入的model中对应的field值为0 也会进入if判断被删掉 在编辑已存在的表单数据的时候会有问题,被删掉后表单中该条数据为空,需做下非0判断 相关问题已提issues https://github.com/kailong321200875/vue-element-plus-admin/issues/517