Explorar o código

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

qindao hai 1 ano
pai
achega
b202c2974a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/auth/dept/CreateDrawer.vue

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

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