Przeglądaj źródła

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

johnsen 7 miesięcy temu
rodzic
commit
2c0c482e60
1 zmienionych plików z 1 dodań i 1 usunięć
  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'