Explorar el Código

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

qindao hace 1 año
padre
commit
b202c2974a
Se han modificado 1 ficheros con 1 adiciones y 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'),
       },
     ];