فهرست منبع

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 [
       {
         label: '顶级部门',
-        value: 0,
+        value: -1,
         children: replaceParams(props.deptList || [], 'deptName', 'id'),
       },
     ];