Explorar el Código

fix: 部门树子节点判断逻辑修正

johnsen hace 7 meses
padre
commit
2c0c482e60
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/platform/org/position/manage.vue

+ 1 - 1
src/views/platform/org/position/manage.vue

@@ -286,7 +286,7 @@ export default {
     },
     // 处理删除
     handleRemove(ids, data) {
-      if (data.children && data.children !== []) {
+      if (data.children && data.children.length !== 0) {
         this.$message({
           message: '请先删除子节点!',
           type: 'warning'