From 1aa18c523d9d6f0a5c135169aa1a02f2b5ccb223 Mon Sep 17 00:00:00 2001
From: wensanpi <buban521@126.com>
Date: Sun, 20 Sep 2020 17:38:21 +0800
Subject: [PATCH] update ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml.
---
ruoyi-ui/src/utils/ruoyi.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ruoyi-ui/src/utils/ruoyi.js b/ruoyi-ui/src/utils/ruoyi.js
index 0c0f590..b79f44c 100644
--- a/ruoyi-ui/src/utils/ruoyi.js
+++ b/ruoyi-ui/src/utils/ruoyi.js
@@ -1,4 +1,4 @@
-/**
+/**
* 通用js方法封装处理
* Copyright (c) 2019 ruoyi
*/
@@ -131,7 +131,7 @@
id = id || 'id'
parentId = parentId || 'parentId'
children = children || 'children'
- rootId = rootId || 0
+ rootId = rootId || Math.min.apply(Math, data.map(item => { return item[parentId] })) || 0
//对源数据深度克隆
const cloneData = JSON.parse(JSON.stringify(data))
//循环所有项
--
Gitblit v1.9.2