fix(dept.vue): 添加部门数据丢失问题修复

Former-commit-id: e788a3c46142be3bcb8d58a2a16c5ee9aa67729d
This commit is contained in:
郝先瑞
2022-04-19 12:49:25 +08:00
parent 8402f5eb67
commit 3ee1a0ebcf

View File

@@ -195,6 +195,7 @@ async function loadDeptData() {
*/
function handleAdd(row: any) {
loadDeptData();
state.formData.id = undefined
state.formData.parentId = row.id;
state.dialog = {
title: "添加部门",