From 465065ea1feb32a14c5a00b3a78f6aa15d3b15bf Mon Sep 17 00:00:00 2001 From: vapao Date: Thu, 9 Dec 2021 22:32:19 +0800 Subject: [PATCH] U update --- spug_web/src/pages/host/Group.js | 43 ++++++++++++++++---------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/spug_web/src/pages/host/Group.js b/spug_web/src/pages/host/Group.js index 6fa99cf..86c6694 100644 --- a/spug_web/src/pages/host/Group.js +++ b/spug_web/src/pages/host/Group.js @@ -5,7 +5,7 @@ */ import React, { useState, useEffect } from 'react'; import { observer } from 'mobx-react'; -import { Input, Card, Tree, Dropdown, Menu, Switch, Tooltip, Modal } from 'antd'; +import { Input, Card, Tree, Dropdown, Menu, Switch, Tooltip, Spin, Modal } from 'antd'; import { FolderOutlined, FolderAddOutlined, @@ -158,7 +158,6 @@ export default observer(function () { )}> - v || setVisible(v)}> - store.group = node} - onExpand={handleExpand} - onDrop={handleDrag} - onRightClick={handleRightClick} - /> - + + v || setVisible(v)}> + store.group = node} + onExpand={handleExpand} + onDrop={handleDrag} + onRightClick={handleRightClick} + /> + + {treeData.length === 1 && treeData[0].children.length === 0 && (
右键点击分组进行分组管理哦~
)}