From fb07677c32d4e294769d2c49fd9a40470c90cbc9 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期四, 24 九月 2020 19:21:55 +0800 Subject: [PATCH] 左侧菜单文字过长显示省略号 --- ruoyi-ui/src/utils/ruoyi.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ruoyi-ui/src/utils/ruoyi.js b/ruoyi-ui/src/utils/ruoyi.js index 4333f82..b79f44c 100644 --- a/ruoyi-ui/src/utils/ruoyi.js +++ b/ruoyi-ui/src/utils/ruoyi.js @@ -131,7 +131,7 @@ id = id || 'id' parentId = parentId || 'parentId' children = children || 'children' - rootId = rootId || Math.min.apply(Math,data.map(item => { return item[parentId] })) || 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