Преглед изворни кода

fix: 添加顶级部门的默认parentId为-1

qindao пре 1 година
родитељ
комит
b202c2974a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/views/auth/dept/CreateDrawer.vue

+ 1 - 1
src/views/auth/dept/CreateDrawer.vue

@@ -81,7 +81,7 @@
     return [
     return [
       {
       {
         label: '顶级部门',
         label: '顶级部门',
-        value: 0,
+        value: -1,
         children: replaceParams(props.deptList || [], 'deptName', 'id'),
         children: replaceParams(props.deptList || [], 'deptName', 'id'),
       },
       },
     ];
     ];